Function at 0x4057c8
Capabilities:
Check http status code
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov eax, 0x24c8
lea ebp, [esp - 0x2448]
call fcn.0040f370
mov eax, dword [0x413040]
xor eax, ebp
mov dword [ebp + 0x2444], eax
mov eax, dword [ebp + 0x2450]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x2454]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x245c]
mov dword [ebp - 0x54], eax
xor eax, eax
cmp dword [edi + 4], eax
push ebx
mov ebx, ecx
jne 0x405aab
push esi
push 0x10000000
push eax
lea esi, [ebp - 0x44]
mov dword [edi + 0x1c], eax
call fcn.00405ac3
push 0x10000000
push dword [ebp - 0x48]
mov eax, esi
call fcn.00405b24
test eax, eax
jne 0x40583c
xor eax, eax
jmp 0x405aaa
xor esi, esi
push esi
push esi
push 3
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
push dword [edi]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, esi
mov dword [edi + 4], eax
je 0x405835
cmp dword [edi + 0x14], esi
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x7c], str.image_gif
mov dword [ebp - 0x78], str.image_x_xbitmap
mov dword [ebp - 0x74], str.image_jpg
mov dword [ebp - 0x70], str.image_pjpeg
mov dword [ebp - 0x6c], str.text_html
mov dword [ebp - 0x68], str.text_xml
mov dword [ebp - 0x64], 0x4107a8
mov dword [ebp - 0x60], esi
lea eax, [ebp - 0x44]
je 0x4058bc
call fcn.00405b8c
mov esi, dword [eax]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
call fcn.00405bec
push edi
or ebx, 0x400000
push ebx
push 0
jmp 0x4058db
call fcn.00405b8c
mov esi, dword [eax]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
call fcn.00405bec
push edi
or ebx, 0x400000
push ebx
lea ecx, [ebp - 0x7c]
push ecx
mov eax, dword [eax]
push esi
push 0
push eax
push 0x4107a0
push dword [edi + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x405906
push eax
call fcn.004018e7
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x40591a
push eax
call fcn.004018e7
cmp dword [edi + 8], 0
je 0x405a9b
and dword [ebp - 0x4c], 0
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x405946
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405a9b
push 0
push 0
push dword [ebp + 0x2458]
push dword [ebp - 0x50]
push dword [edi + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4059a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x3e5
setne cl
mov eax, ecx
test eax, eax
jne 0x405a9b
push dword [edi + 0x18]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x5c], eax
push ecx
lea eax, [ebp - 0x5c]
push eax
xor eax, eax
test ebx, ebx
setne al
mov dword [ebp - 0x58], ebx
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x80], eax
jne 0x405a9b
push 0
lea eax, [ebp - 0x48]
push eax
lea ebx, [edi + 0x1c]
push ebx
push 0x20000013
push dword [edi + 8]
mov dword [ebp - 0x48], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x405a5c
mov eax, dword [ebx]
cmp eax, 0x12e
je 0x405a61
cmp eax, 0x197
jne 0x405a15
cmp dword [ebp - 0x4c], 0
jne 0x405a15
mov eax, dword [edi + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x405a01
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2b
push dword [edi + 8]
call esi
mov eax, dword [edi + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x405a50
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2c
jmp 0x405a4b
cmp eax, 0x191
jne 0x405a93
cmp dword [ebp - 0x4c], 0
jne 0x405a93
mov eax, dword [edi + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x405a39
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1c
push dword [edi + 8]
call esi
mov eax, dword [edi + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x405a50
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1d
push dword [edi + 8]
call esi
mov dword [ebp - 0x4c], 1
jmp 0x40592e
and dword [ebx], 0
jmp 0x405a93
push 0
lea ecx, [ebp - 0x48]
mov eax, 0x400
lea esi, [edi + 0x28]
push ecx
mov ecx, esi
mov dword [ebp - 0x48], eax
call fcn.004060fd
push eax
push 0x21
push dword [edi + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x405a93
or eax, 0xffffffff
mov ecx, esi
call fcn.0040560b
cmp dword [ebx], 0x190
jb 0x405aa7
mov esi, edi
call fcn.00405c31
jmp 0x405835
mov eax, dword [edi + 8]
pop esi
mov ecx, dword [ebp + 0x2444]
xor ecx, ebp
pop ebx
call fcn.0040f143
add ebp, 0x2448
leave
ret 0x10