Function at 0x404b40
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4615b8
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x49106c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebx + 8]
push 7
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
push str.unknown
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x44], 0
call fcn.004076f0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 8
push eax
lea eax, [ebp - 0x54]
push eax
push 0x32
push 0
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x404f7e
mov eax, dword [ebp - 0x54]
and eax, 1
je 0x404f7e
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x404f77
test byte [ebp - 0x2c], 0x20
jne 0x404f77
push 0x4737a0
lea ecx, [ebp - 0x3c]
call fcn.00406700
mov dword [ebp - 4], 0
mov ecx, 0x4737a8
mov eax, dword [ebx + 4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404c26
test dx, dx
je 0x404c22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404c26
add eax, 4
add ecx, 4
test dx, dx
jne 0x404c00
xor eax, eax
jmp 0x404c2b
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x404c43
push 4
push 0x4737ac
lea ecx, [ebp - 0x3c]
call fcn.004076f0
push str.gzip_deflate
lea ecx, [ebp - 0x34]
call fcn.00406700
push str.Accept_Encoding
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00406700
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.00404860
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404c95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404cb3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebx + 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00404180
push 0
push 0
push 0
push 0
push dword [ebx + 0x44]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [ebx + 0xc]
mov edi, eax
test ecx, ecx
je 0x404ce8
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebx + 0xc], 0
mov eax, edi
mov dword [ebx + 0xc], edi
test eax, eax
jne 0x404cf9
lea ebx, [edi + 6]
jmp 0x404f36
push 4
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 1
push ecx
push 0x41
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x9c]
call fcn.00411460
test eax, eax
jne 0x404d29
lea ebx, [eax + 8]
jmp 0x404f36
push 0
push 0
push 3
push 0x4737f4
push 0x4737f8
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
push dword [ebx + 0xc]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 4
test edi, edi
jne 0x404d63
lea ebx, [eax + 7]
jmp 0x404f36
mov ecx, 0x1bb
mov esi, 0x84403300
cmp word [ebp - 0x84], cx
mov eax, 0x84c03300
cmove esi, eax
cmp dword [ebx + 0x4c], 0
je 0x404da0
push 0x4737fc
lea ecx, [ebp - 0x28]
call fcn.00406010
mov dword [ebp - 0x44], 1
cmp dword [eax + 0x14], 8
jb 0x404da2
mov eax, dword [eax]
jmp 0x404da2
xor eax, eax
push 0
push esi
push 0
push 0
push eax
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x70]
push dword [eax]
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x50], esi
test byte [ebp - 0x44], 1
mov byte [ebp - 4], 5
je 0x404dd0
lea ecx, [ebp - 0x28]
call fcn.00406d00
test esi, esi
jne 0x404ddc
lea ebx, [esi + 9]
jmp 0x404f1b
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 4
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x2c], 0x100
lea eax, [ebp - 0x2c]
push 4
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0x3c]
mov ecx, 0x473810
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404e38
test dx, dx
je 0x404e34
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404e38
add eax, 4
add ecx, 4
test dx, dx
jne 0x404e12
xor eax, eax
jmp 0x404e3d
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x404e5a
mov eax, dword [ebp - 0x38]
push 0
push 0
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
jmp 0x404ea7
lea edx, [ebx + 4]
lea ecx, [ebp - 0x2c]
call fcn.004114e0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x60]
call fcn.00406850
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 4]
push dword [ecx - 0xc]
mov eax, dword [ebp - 0x38]
push edx
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x30], eax
call fcn.004067d0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004061b0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x404eb0
lea ebx, [eax + 0xa]
jmp 0x404f1b
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], esi
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00403ca0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], esi
push eax
call fcn.00403b20
push eax
lea ecx, [ebx + 8]
mov byte [ebp - 4], 8
call fcn.00406690
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.004061b0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], esi
push eax
mov ecx, ebx
call fcn.00403c10
test eax, eax
jne 0x404f04
lea ebx, [eax + 0xb]
jmp 0x404f13
lea eax, [ebx + 0x28]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00403d90
xor ebx, ebx
lea ecx, [ebp - 0x48]
call fcn.004061b0
test esi, esi
je 0x404f2a
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x404f30
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
or esi, 0xffffffff
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404f54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x404f73
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
jmp 0x404f83
mov eax, 5
jmp 0x404f83
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c397
mov esp, ebp
pop ebp
ret 8