Function at 0x41d670
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438651
mov eax, dword fs:[0]
push eax
mov eax, 0x11c8
call fcn.00421da0
mov eax, dword [0x44c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x106c]
mov dword [ebp - 0x1190], eax
mov dword [ebp - 0x11a0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x118c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1188], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1198], eax
mov dword [ebp - 0x11a8], 0
call fcn.00411580
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push 0xc
xor eax, eax
movq qword [ebp - 0x11b4], xmm0
push str.UploadHeader
lea ecx, [ebp - 0x1028]
mov dword [ebp - 0x1018], 0
movups xmmword [ebp - 0x11d4], xmm0
mov dword [ebp - 0x1014], 7
movups xmmword [ebp - 0x11c4], xmm0
mov word [ebp - 0x1028], ax
call fcn.00402e40
xor eax, eax
mov dword [ebp - 0x1184], 0
push 0x2004
mov word [ebp - 0x1072], ax
mov byte [ebp - 0x1070], al
call fcn.00427b01
add esp, 4
mov dword [ebp - 0x1184], eax
cmp byte [ebp - 0x1070], 0
lea ecx, [ebp - 0x1180]
cmove ecx, eax
mov dword [ecx], 0x2000
mov cl, byte [ebp - 0x1070]
lea eax, [ebp - 0x1180]
mov edx, dword [ebp - 0x1184]
test cl, cl
mov esi, 0x2000
mov byte [ebp - 4], 2
cmove eax, edx
mov eax, dword [eax]
cmp eax, esi
jae 0x41d3a8
lea eax, [eax*2 + 0x10]
and eax, 0xfff0
cmp eax, esi
cmova esi, eax
test cl, cl
mov dword [ebp - 0x1194], esi
lea esi, [ebp - 0x1180]
mov eax, dword [ebp - 0x1194]
cmove esi, edx
add eax, 4
test cl, cl
jne 0x41d340
push eax
push esi
call fcn.004280d8
mov cl, byte [ebp - 0x1070]
add esp, 8
mov esi, eax
jmp 0x41d383
cmp eax, 0x10e
jbe 0x41d376
push eax
mov byte [ebp - 0x1070], 0
call fcn.00427b01
mov esi, eax
movsx eax, word [ebp - 0x1072]
push eax
lea eax, [ebp - 0x1180]
push eax
push esi
call fcn.00422b20
mov cl, byte [ebp - 0x1070]
add esp, 0x10
jmp 0x41d383
mov word [ebp - 0x1072], ax
lea esi, [ebp - 0x1180]
test cl, cl
mov dword [ebp - 0x1184], esi
mov ecx, dword [ebp - 0x1194]
lea eax, [ebp - 0x1180]
cmove eax, esi
mov dword [eax], ecx
mov cl, byte [ebp - 0x1070]
mov edx, dword [ebp - 0x1184]
test cl, cl
lea eax, [ebp - 0x1180]
push 0
push dword [ebp - 0x118c]
cmove eax, edx
add eax, 4
test cl, cl
mov dword [ebp - 0x11a4], eax
lea ecx, [ebp - 0x106c]
lea eax, [ebp - 0x1180]
cmove eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x1194], eax
call fcn.004116c0
test eax, eax
je 0x41d3f5
or esi, 0xffffffff
mov dword [edi + 0x28], 0xe
jmp 0x41d8e4
lea ecx, [ebp - 0x106c]
call fcn.004118d0
mov dword [ebp - 0x119c], eax
test eax, eax
jne 0x41d419
lea esi, [eax - 2]
mov dword [edi + 0x28], 0xe
jmp 0x41d8e4
mov esi, dword [ebp - 0x1188]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41d422
sub esi, ecx
sar esi, 1
inc esi
push esi
call fcn.00421b68
push dword [ebp - 0x1188]
mov dword [ebp - 0x118c], eax
push esi
push eax
call fcn.00411510
add esp, 0x10
test al, al
jne 0x41d45c
mov esi, 0xfffffffd
jmp 0x41d8e4
mov esi, dword [ebp - 0x1198]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41d465
sub esi, ecx
sar esi, 1
inc esi
push esi
call fcn.00421b68
push dword [ebp - 0x1198]
mov dword [ebp - 0x1188], eax
push esi
push eax
call fcn.00411510
add esp, 0x10
test al, al
jne 0x41d49f
mov esi, 0xfffffffc
jmp 0x41d8e4
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.004238c0
push 0x43a2b4
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.00428015
push dword [ebp - 0x1188]
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.0042806f
push 0x43a2b8
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.0042806f
push str.Content_Disposition:_form_data__name_file__
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.0042806f
push str.filename_
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.0042806f
add esp, 0x48
lea eax, [ebp - 0x410]
push dword [ebp - 0x118c]
push 0x400
push eax
call fcn.0042806f
push str.__r_n_r_n
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.0042806f
lea esi, [ebp - 0x410]
add esp, 0x18
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x41d560
push 0x400
lea eax, [ebp - 0x810]
sub esi, ecx
push 0
push eax
call fcn.004238c0
push str._r_n__
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00428015
push dword [ebp - 0x1188]
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.0042806f
push str.___r_n
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.0042806f
lea ecx, [ebp - 0x810]
add esp, 0x30
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41d5d0
push dword [ebp - 0x1188]
sub ecx, edx
mov dword [ebp - 0x1198], ecx
call fcn.00421b71
push dword [ebp - 0x118c]
call fcn.00421b71
mov eax, dword [ebp - 0x1198]
add esp, 8
add eax, esi
mov dword [ebp - 0x11d4], 0x28
add eax, dword [ebp - 0x119c]
mov dword [ebp - 0x11b8], eax
lea eax, [ebp - 0x11d4]
push 0
push 0
push 0
push eax
push dword [ebp - 0x1190]
mov dword [ebp - 0x118c], 5
mov dword [ebp - 0x11ac], 4
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x41d6df
nop dword [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xffffd11e
cmp eax, 0xa1
ja case.0x41d669.12003
movzx eax, byte [eax + 0x41d954]
jmp dword [eax*4 + 0x41d948]
lea eax, [ebp - 0x11ac]
push eax
lea eax, [ebp - 0x1188]
push eax
push 0x1f
push dword [ebp - 0x1190]
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x1188], 0x100
lea eax, [ebp - 0x1188]
push 4
push eax
push 0x1f
push dword [ebp - 0x1190]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0x118c]
dec eax
mov dword [ebp - 0x118c], eax
test eax, eax
jle case.0x41d669.12002
push 0
push 0
push 0
lea eax, [ebp - 0x11d4]
push eax
push dword [ebp - 0x1190]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x41d650
push esi
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
push dword [ebp - 0x1190]
call fcn.0041e810
test eax, eax
je 0x41d72e
lea eax, [ebp - 0x11a0]
mov dword [edi + 0x28], 4
push eax
mov ecx, edi
mov esi, 0xfffffffa
call fcn.0041da00
jmp 0x41d8e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xfffffffb
mov dword [edi + 0x28], 4
jmp 0x41d8e4
mov esi, dword [ebp - 0x119c]
test esi, esi
je 0x41d7b4
nop dword [eax + eax]
lea ecx, [ebp - 0x106c]
call fcn.00411910
cmp eax, dword [ebp - 0x1194]
jae 0x41d766
lea ecx, [ebp - 0x106c]
call fcn.00411910
mov dword [ebp - 0x1194], eax
jmp 0x41d76c
mov eax, dword [ebp - 0x1194]
lea ecx, [ebp - 0x118c]
push ecx
push eax
push dword [ebp - 0x11a4]
lea ecx, [ebp - 0x106c]
call fcn.00411840
test eax, eax
je 0x41d800
push dword [ebp - 0x118c]
mov ecx, edi
push dword [ebp - 0x11a4]
push dword [ebp - 0x1190]
call fcn.0041e810
test eax, eax
jne 0x41d7f2
sub esi, dword [ebp - 0x118c]
mov dword [ebp - 0x119c], esi
jne 0x41d740
push dword [ebp - 0x1198]
mov esi, dword [ebp - 0x1190]
lea eax, [ebp - 0x810]
push eax
push esi
mov ecx, edi
call fcn.0041e810
test eax, eax
mov ecx, edi
lea eax, [ebp - 0x11a0]
push eax
je 0x41d83b
call fcn.0041da00
mov esi, 0xfffffff6
mov dword [edi + 0x28], 4
jmp 0x41d8e4
mov esi, 0xfffffff8
mov dword [edi + 0x28], 4
jmp 0x41d80c
mov esi, 0xfffffff9
mov dword [edi + 0x28], 0xe
cmp dword [ebp - 0x119c], 0
mov dword [ebp - 0x11a8], esi
jbe 0x41d7b4
lea eax, [ebp - 0x11a0]
mov ecx, edi
push eax
call fcn.0041da00
test eax, eax
je 0x41d8e4
mov esi, 0xfffffff7
jmp 0x41d8e4
call fcn.0041da00
test eax, eax
je 0x41d855
mov esi, 0xfffffff5
mov dword [edi + 0x28], 4
jmp 0x41d8e4
push 0x800
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.004238c0
add esp, 0xc
mov dword [ebp - 0x11a4], 0x800
lea eax, [ebp - 0x11ac]
mov dword [ebp - 0x11ac], 0
push eax
lea eax, [ebp - 0x11a4]
push eax
lea eax, [ebp - 0x1010]
push eax
push 0x13
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x41d8d0
lea eax, [ebp - 0x1010]
push eax
call fcn.00428ad4
add esp, 4
cmp eax, 0xc8
je 0x41d8de
cmp eax, 0x19d
je 0x41d8c9
cmp eax, 0x19c
jne 0x41d8c9
mov byte [edi + 0x2c], 1
mov esi, 0xfffffff3
jmp 0x41d8e4
mov esi, 0xfffffff4
mov dword [edi + 0x28], 4
jmp 0x41d8e4
mov esi, dword [ebp - 0x11a8]
lea ecx, [ebp - 0x106c]
call fcn.004117f0
cmp byte [ebp - 0x1070], 0
jne 0x41d911
mov eax, dword [ebp - 0x1184]
lea ecx, [ebp - 0x1180]
cmp eax, ecx
je 0x41d911
push eax
call fcn.00427afc
add esp, 4
lea ecx, [ebp - 0x1028]
call fcn.00402d90
lea ecx, [ebp - 0x106c]
call fcn.00411650
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421b57
mov esp, ebp
pop ebp
ret 0x10