Function at 0x402cf3
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.0042de00
mov eax, dword [0x44ecf8]
push ebx
xor ebx, ebx
cmp dword [esi + 4], ebx
push edi
mov dword [ebp + 0x2438], eax
mov edi, ecx
jne 0x40300d
push 0x10000000
push ebx
lea ecx, [ebp - 0x50]
mov dword [esi + 0x1c], ebx
call fcn.004029ad
push 0x10000000
push dword [ebp + 0x2444]
lea ecx, [ebp - 0x50]
call fcn.00402a12
test eax, eax
je 0x40300d
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 0x40300d
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], 0x446e84
mov dword [ebp - 0x64], ebx
lea ecx, [ebp - 0x50]
je 0x402e04
lea eax, [ebp - 0x58]
push eax
call fcn.00402a78
mov dword [ebp + 0x2444], eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x50]
call fcn.00402adb
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 0x446e7c
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 [0x453174]
je 0x402dff
call fcn.004013ad
mov ecx, dword [ebp - 0x58]
jmp 0x402e5f
lea eax, [ebp - 0x54]
push eax
call fcn.00402a78
mov dword [ebp + 0x2444], eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x50]
call fcn.00402adb
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 0x446e7c
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 [0x453174]
je 0x402e5c
call fcn.004013ad
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x402e6f
call fcn.004013ad
cmp dword [esi + 8], ebx
je 0x403006
mov dword [ebp + 0x2444], ebx
mov edi, dword [ebp + 0x2450]
cmp edi, ebx
je 0x402e98
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x403006
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 0x402efc
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x3e5
setne cl
mov eax, ecx
cmp eax, ebx
jne 0x403006
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 0x403006
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 0x402fc8
mov edi, dword [edi]
cmp edi, 0x12e
je 0x402fcc
cmp edi, 0x197
jne 0x402f6f
cmp dword [ebp + 0x2444], ebx
jne 0x402f6f
mov eax, dword [esi + 0x20]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x402f5b
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 0x402fb9
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2c
jmp 0x402fb0
cmp edi, 0x191
jne 0x402ffd
cmp dword [ebp + 0x2444], ebx
jne 0x402ffd
mov eax, dword [esi + 0x20]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x402f9e
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 0x402fb9
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 0x402e7e
mov dword [edi], ebx
jmp 0x402ffd
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.00401d43
push eax
push 0x21
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x402ffd
push 0xffffffffffffffff
mov ecx, edi
call fcn.00401d78
cmp dword [esi + 0x1c], 0x190
jb 0x403011
mov ecx, esi
call fcn.0040302b
xor eax, eax
jmp 0x403014
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 0x2438]
pop edi
pop ebx
call fcn.0042dc80
add ebp, 0x243c
leave
ret 0x10