Function at 0x403e15
Capabilities:
Check http status code
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441a9a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x2e0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x1c], 4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.0042dfac
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea ecx, [ebp - 0x14]
call fcn.0042e759
mov edx, dword [0x455374]
push edx
lea ecx, [ebp - 0x14]
call fcn.0042756f
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 0
jge 0x403f36
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x455374]
push ecx
lea edx, [ebp - 0x25c]
push edx
call fcn.0042e540
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x29c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x29c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0042e370
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x25c]
call fcn.0042e237
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x455374]
push eax
lea ecx, [ebp - 0x260]
push ecx
call fcn.0042e540
mov dword [ebp - 0x2a0], eax
mov edx, dword [ebp - 0x2a0]
mov dword [ebp - 0x2a4], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2a4]
push eax
mov ecx, dword [ebp + 8]
call fcn.0042e370
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x260]
call fcn.0042e237
jmp 0x403f42
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0042e370
lea ecx, [ebp - 0x224]
call fcn.00401570
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00401570
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x234]
call fcn.00401570
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x220]
call fcn.00401570
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 4], 7
push 0x4553a8
lea edx, [ebp - 0x264]
push edx
lea ecx, [ebp - 0x14]
call fcn.00427522
lea ecx, [ebp - 0x264]
call fcn.0042e237
lea ecx, [ebp - 0x14]
call fcn.00402980
mov dword [ebp - 0x2b8], eax
push 0x20000000
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x2b8]
push eax
call fcn.0043cd38
mov dword [ebp - 0x2bc], eax
cmp dword [ebp - 0x2bc], 0
jne 0x404064
mov dword [ebp - 0x268], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x220]
call fcn.0042e237
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x234]
call fcn.0042e237
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0042e237
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.0042e237
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042e237
mov eax, dword [ebp - 0x268]
jmp 0x40471b
lea ecx, [ebp - 0x224]
call fcn.00402980
mov dword [ebp - 0x2c0], eax
push 0
push 0
push 3
push 0xe5a2b8
push 0xe5a2bc
push 0
mov ecx, dword [ebp - 0x2c0]
push ecx
mov edx, dword [ebp - 0x290]
mov eax, dword [edx]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x20], eax
push 0x4553ac
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00427522
mov dword [ebp - 0x2c4], eax
mov edx, dword [ebp - 0x2c4]
mov dword [ebp - 0x2c8], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x2c8]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042e370
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x26c]
call fcn.0042e237
mov dword [ebp - 0x230], str.Accept:____r
mov dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x28]
call fcn.00402980
mov dword [ebp - 0x2cc], eax
push 0
mov ecx, dword [0x455378]
push ecx
lea edx, [ebp - 0x230]
push edx
push 0
push 0x4553b0
mov eax, dword [ebp - 0x2cc]
push eax
push 0x4553bc
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp dword [ebp - 0x18], 0
jne 0x4041af
mov dword [ebp - 0x270], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x220]
call fcn.0042e237
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x234]
call fcn.0042e237
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0042e237
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.0042e237
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042e237
mov eax, dword [ebp - 0x270]
jmp 0x40471b
mov dword [ebp - 0x24], 0x1f4
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 0x13
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 0x21c]
push eax
call fcn.004162c9
add esp, 4
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x24], 0x1f4
mov ecx, dword [ebp - 0x290]
mov edx, dword [ebp - 0x228]
mov dword [ecx + 8], edx
cmp dword [ebp - 0x228], 0x12d
je 0x404222
cmp dword [ebp - 0x228], 0x12e
je 0x404222
cmp dword [ebp - 0x228], 0x12f
jne 0x40446d
lea ecx, [ebp - 0x240]
call fcn.00401570
mov dword [ebp - 0x2d0], eax
mov byte [ebp - 4], 9
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0x21
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x240]
call fcn.0042e6de
mov dword [ebp - 0x2d4], eax
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x2d4]
push ecx
push 0x21
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x240]
call fcn.0042e6b6
lea ecx, [ebp - 0x244]
call fcn.00401570
mov dword [ebp - 0x2d8], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x240]
call fcn.00402980
mov dword [ebp - 0x2dc], eax
push 0x20000000
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x244]
push edx
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x2dc]
push ecx
call fcn.0043cd38
lea ecx, [ebp - 0x244]
call fcn.00402940
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
je 0x4043cf
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x248]
call fcn.0042dfac
mov dword [ebp - 0x2e4], eax
mov byte [ebp - 4], 0xb
push 1
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x240]
call fcn.004274aa
mov dword [ebp - 0x2e8], eax
mov ecx, dword [ebp - 0x2e8]
mov dword [ebp - 0x2ec], ecx
mov byte [ebp - 4], 0xc
push 0x4553c0
mov edx, dword [ebp - 0x2ec]
push edx
call fcn.004052d0
mov byte [ebp - 0x2ed], al
mov al, byte [ebp - 0x2ed]
mov byte [ebp - 0x274], al
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x278]
call fcn.0042e237
mov ecx, dword [ebp - 0x274]
and ecx, 0xff
test ecx, ecx
je 0x40439c
push 0x4553c4
lea ecx, [ebp - 0x248]
call fcn.0042e613
lea edx, [ebp - 0x240]
push edx
lea ecx, [ebp - 0x248]
call fcn.0042e64f
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x240]
call fcn.0042e370
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x248]
call fcn.0042e237
lea ecx, [ebp - 0x240]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0042e370
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x27c], 3
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x244]
call fcn.0042e237
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x240]
call fcn.0042e237
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x220]
call fcn.0042e237
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x234]
call fcn.0042e237
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0042e237
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.0042e237
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042e237
mov eax, dword [ebp - 0x27c]
jmp 0x40471b
cmp dword [ebp - 0x228], 0x198
je 0x404491
cmp dword [ebp - 0x228], 0x1f8
je 0x404491
cmp dword [ebp - 0x228], 0x194
jne 0x40450d
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x280], 6
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x220]
call fcn.0042e237
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x234]
call fcn.0042e237
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0042e237
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.0042e237
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042e237
mov eax, dword [ebp - 0x280]
jmp 0x40471b
cmp dword [ebp - 0x228], 0xc8
jne 0x404673
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 1
mov dword [ebp - 0x24], 0x1f4
push 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x21c]
push eax
push 5
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea edx, [ebp - 0x21c]
push edx
call fcn.0041623e
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
ja 0x40457b
mov dword [ebp - 0x24], 0x2710
cmp dword [ebp - 0x24c], 0
je 0x4045ee
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x254]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x4045ea
cmp dword [ebp - 0x258], 0
jbe 0x4045ea
cmp dword [ebp - 0x250], 0xaae5f
jae 0x4045ea
mov ecx, dword [ebp - 0x250]
add ecx, dword [ebp - 0x258]
mov dword [ebp - 0x250], ecx
mov edx, dword [ebp - 0x254]
add edx, dword [ebp - 0x258]
mov dword [ebp - 0x254], edx
jmp 0x4045ec
jmp 0x4045ee
jmp 0x40457b
mov eax, dword [ebp - 0x254]
mov byte [eax], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x250]
mov dword [ecx], edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x284], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x220]
call fcn.0042e237
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x234]
call fcn.0042e237
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0042e237
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.0042e237
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042e237
mov eax, dword [ebp - 0x284]
jmp 0x40471b
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x220]
call fcn.0042e237
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x234]
call fcn.0042e237
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0042e237
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.0042e237
jmp 0x4046f5
mov dword [ebp - 4], 0
mov dword [ebp - 0x28c], 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042e237
mov eax, dword [ebp - 0x28c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10