Function at 0x404c80
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 0x464971
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x49806c]
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 dword [ebp - 0x60], ebx
mov eax, dword [ebp + 8]
mov edx, str.PSYjJic_Jg
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
xor eax, eax
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], eax
call fcn.0040fa80
add esp, 4
lea ecx, [ebx + 8]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x44], ecx
call fcn.00406a60
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404d0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 8
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x32
push 0
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x40514e
mov eax, dword [ebp - 0x4c]
and eax, 1
je 0x40514e
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x405147
test byte [ebp - 0x2c], 0x20
jne 0x405147
push ecx
mov edx, 0x477860
lea ecx, [ebp - 0x3c]
call fcn.0040fa80
add esp, 4
lea eax, [ebx + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x48], eax
mov ecx, 0x47786c
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404dac
test dx, dx
je 0x404da8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404dac
add eax, 4
add ecx, 4
test dx, dx
jne 0x404d86
xor eax, eax
jmp 0x404db1
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x404df6
push ecx
mov edx, 0x477870
lea ecx, [ebp - 0x2c]
call fcn.0040fa80
add esp, 4
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00406a60
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404df6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov edx, str.LzIhOGQsLS4kKTwt
lea ecx, [ebp - 0x34]
call fcn.0040fa80
mov esi, eax
mov edx, str.CSsrLTg8ZQ0mKycsISYv
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040fa80
add esp, 4
push esi
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.00404a10
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404e45
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404e63
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.00404300
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 esi, eax
test ecx, ecx
je 0x404e98
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebx + 0xc], 0
mov eax, esi
mov dword [ebx + 0xc], esi
test eax, eax
jne 0x404ea9
lea ebx, [esi + 6]
jmp 0x405106
push 4
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 1
push ecx
push 0x41
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [ebp - 0x58]
lea edx, [ebp - 0x9c]
call fcn.004120e0
test eax, eax
jne 0x404ed9
lea ebx, [eax + 8]
jmp 0x405106
push 0
push 0
push 3
push 0x4778d4
push 0x4778d8
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 - 0x58], edi
mov byte [ebp - 4], 6
test edi, edi
jne 0x404f13
lea ebx, [eax + 7]
jmp 0x405103
mov ecx, 0x1bb
mov esi, 0x84403300
cmp word [ebp - 0x84], cx
mov eax, 0x84c03300
cmove esi, eax
cmp dword [ebx + 0x4c], 0
je 0x404f67
push ecx
mov edx, 0x4778dc
lea ecx, [ebp - 0x40]
call fcn.0040fa80
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
push dword [eax]
mov dword [ebp - 0x34], 1
call fcn.004062f0
mov ebx, 3
cmp dword [eax + 0x14], 8
jb 0x404f6c
mov eax, dword [eax]
jmp 0x404f6c
mov ebx, dword [ebp - 0x40]
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 - 0x34], esi
mov dword [ebp - 4], 8
test bl, 2
je 0x404f9f
lea ecx, [ebp - 0x28]
and ebx, 0xfffffffd
call fcn.00407030
mov byte [ebp - 4], 9
test bl, 1
je 0x404fb0
lea ecx, [ebp - 0x40]
call fcn.00406490
test esi, esi
jne 0x404fbc
lea ebx, [esi + 9]
jmp 0x4050eb
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]
push ecx
mov edx, 0x4778f8
lea ecx, [ebp - 0x30]
call fcn.0040fa80
add esp, 4
lea ecx, [ebp - 0x3c]
mov edx, eax
call fcn.00406600
lea ecx, [ebp - 0x30]
mov bl, al
call fcn.00406490
test bl, bl
je 0x405029
mov eax, dword [ebp - 0x38]
push 0
push 0
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov ebx, eax
jmp 0x405072
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.00412160
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x50]
call fcn.00406c50
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 - 0x50]
mov ebx, eax
call fcn.00406bd0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.00406490
test ebx, ebx
jne 0x40507d
mov ebx, 0xa
jmp 0x4050eb
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], esi
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00403df0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x48], esi
push eax
call fcn.00403c00
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x44]
push eax
call fcn.00406a60
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
call fcn.00406490
mov ebx, dword [ebp - 0x60]
lea eax, [ebp - 0x44]
push eax
mov ecx, ebx
mov dword [ebp - 0x44], esi
call fcn.00403cf0
test eax, eax
jne 0x4050d4
lea ebx, [eax + 0xb]
jmp 0x4050e3
lea eax, [ebx + 0x28]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00403ee0
xor ebx, ebx
lea ecx, [ebp - 0x54]
call fcn.00406490
test esi, esi
je 0x4050fa
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x405100
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
or edi, 0xffffffff
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405124
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], edi
dec edi
test edi, edi
jg 0x405143
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
jmp 0x405153
mov eax, 5
jmp 0x405153
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.0043f6c1
mov esp, ebp
pop ebp
ret 8