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

Disassembly:
push ebp
mov eax, 0x24bc
lea ebp, [esp - 0x243c]
call fcn.0042db90
mov eax, dword [0x44dcf8]
push ebx
xor ebx, ebx
cmp dword [esi + 4], ebx
push edi
mov dword [ebp + 0x2438], eax
mov edi, ecx
jne 0x4030be
push 0x10000000
push ebx
lea ecx, [ebp - 0x50]
mov dword [esi + 0x1c], ebx
call fcn.00402a5e
push 0x10000000
push dword [ebp + 0x2444]
lea ecx, [ebp - 0x50]
call fcn.00402ac3
test eax, eax
je 0x4030be
push ebx
push ebx
push 3
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x40]
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x4030be
cmp dword [esi + 0x14], ebx
mov dword [ebp - 0x80], str.image_gif
mov dword [ebp - 0x7c], str.image_x_xbitmap
mov dword [ebp - 0x78], str.image_jpg
mov dword [ebp - 0x74], str.image_pjpeg
mov dword [ebp - 0x70], str.text_html
mov dword [ebp - 0x6c], str.text_xml
mov dword [ebp - 0x68], 0x445e84
mov dword [ebp - 0x64], ebx
lea ecx, [ebp - 0x50]
je 0x402eb5
lea eax, [ebp - 0x58]
push eax
call fcn.00402b29
mov dword [ebp + 0x2444], eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x50]
call fcn.00402b8c
mov ecx, dword [ebp + 0x2444]
mov ecx, dword [ecx]
mov eax, dword [eax]
push esi
or edi, 0x400000
push edi
push ebx
push ecx
push ebx
push eax
push 0x445e7c
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff4
mov dword [esi + 8], eax
cmp ecx, dword [0x452174]
je 0x402eb0
call fcn.004013ad
mov ecx, dword [ebp - 0x58]
jmp 0x402f10
lea eax, [ebp - 0x54]
push eax
call fcn.00402b29
mov dword [ebp + 0x2444], eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x50]
call fcn.00402b8c
mov ecx, dword [ebp + 0x2444]
mov ecx, dword [ecx]
mov eax, dword [eax]
push esi
or edi, 0x400000
push edi
lea edx, [ebp - 0x80]
push edx
push ecx
push ebx
push eax
push 0x445e7c
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ecx, dword [ebp - 0x58]
add ecx, 0xfffffff4
mov dword [esi + 8], eax
cmp ecx, dword [0x452174]
je 0x402f0d
call fcn.004013ad
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x402f20
call fcn.004013ad
cmp dword [esi + 8], ebx
je 0x4030b7
mov dword [ebp + 0x2444], ebx
mov edi, dword [ebp + 0x2450]
cmp edi, ebx
je 0x402f49
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4030b7
push ebx
push ebx
push dword [ebp + 0x244c]
push dword [ebp + 0x2448]
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x402fad
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x3e5
setne cl
mov eax, ecx
cmp eax, ebx
jne 0x4030b7
push dword [esi + 0x18]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x60], eax
push ebx
lea eax, [ebp - 0x60]
push eax
xor eax, eax
cmp edi, ebx
setne al
mov dword [ebp - 0x5c], edi
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x58], eax
jne 0x4030b7
push ebx
lea eax, [ebp - 0x54]
push eax
lea edi, [esi + 0x1c]
push edi
push 0x20000013
push dword [esi + 8]
mov dword [ebp - 0x54], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x403079
mov edi, dword [edi]
cmp edi, 0x12e
je 0x40307d
cmp edi, 0x197
jne 0x403020
cmp dword [ebp + 0x2444], ebx
jne 0x403020
mov eax, dword [esi + 0x20]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x40300c
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2b
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x40306a
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2c
jmp 0x403061
cmp edi, 0x191
jne 0x4030ae
cmp dword [ebp + 0x2444], ebx
jne 0x4030ae
mov eax, dword [esi + 0x20]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x40304f
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1c
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x40306a
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1d
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [ebp + 0x2444], 1
jmp 0x402f2f
mov dword [edi], ebx
jmp 0x4030ae
push ebx
lea ecx, [ebp - 0x54]
mov eax, 0x400
push ecx
lea edi, [esi + 0x28]
push eax
mov ecx, edi
mov dword [ebp - 0x54], eax
call fcn.00401d6b
push eax
push 0x21
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4030ae
push 0xffffffffffffffff
mov ecx, edi
call fcn.00401da0
cmp dword [esi + 0x1c], 0x190
jb 0x4030c2
mov ecx, esi
call fcn.004030dc
xor eax, eax
jmp 0x4030c5
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 0x2438]
pop edi
pop ebx
call fcn.0042da10
add ebp, 0x243c
leave
ret 0x10