Function at 0x402690
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535d99
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x593e04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 3
call fcn.0041eb0e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4026e0
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
call fcn.0041eb0e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40270d
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 5
call fcn.0041eb0e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40273a
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 6
call fcn.0041eb0e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402767
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
push str.Mozilla_4.0__compatible__MSIE_8.0__Windows_NT_6.1__Trident_4.0_
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], 1
call fcn.00401680
push 7
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 7
mov dword [ebp - 0x20], 0x50
mov byte [ebp - 0xd], 0
call fcn.00402200
mov eax, dword [eax]
push str.http:__
push eax
call fcn.0051d984
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x38]
sete bl
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x402823
push 7
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp + 0xc]
call fcn.004025e0
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 9
call fcn.004023f0
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402823
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 8
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00402200
mov eax, dword [eax]
push str.https:__
push eax
call fcn.0051d984
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x38]
sete bl
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402869
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4028b6
push 8
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp + 0xc]
call fcn.004025e0
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0xb
call fcn.004023f0
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4028ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x20], 0x1bb
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
test ecx, ecx
js 0x4028dc
push 0x546f04
push eax
call fcn.0051dac5
add esp, 8
test eax, eax
je 0x4028dc
sub eax, dword [ebp + 0xc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4028f9
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004023f0
push 1
push 0x546f04
lea ecx, [ebp - 0x28]
call fcn.004014f0
jmp 0x402973
push esi
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp + 0xc]
call fcn.00402200
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call fcn.004023f0
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402936
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp + 0xc]
call fcn.004025e0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.004023f0
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402973
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 0
jl 0x402a1c
mov edx, ecx
push 0x546f00
push edx
call fcn.0051dac5
add esp, 8
test eax, eax
je 0x402a1c
sub eax, dword [ebp - 0x14]
mov esi, eax
cmp esi, 0xffffffff
je 0x402a1c
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004025e0
mov eax, dword [eax]
push eax
call fcn.0051e024
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4029df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00402200
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xe
call fcn.004023f0
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402a1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x10]
cmp dword [ecx - 0xc], 0
jne 0x402a34
push 3
push 0x546efc
lea ecx, [ebp + 0x10]
call fcn.004014f0
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x402a56
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402a40
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x1c]
call fcn.004014f0
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
push str.POST
push edx
call fcn.0051d984
add esp, 8
test eax, eax
jne 0x402b17
cmp dword [edi - 0xc], eax
jl 0x402a91
push str.Content_Type:
push edi
call fcn.0051dac5
add esp, 8
test eax, eax
je 0x402a91
sub eax, edi
cmp eax, 0xffffffff
jne 0x402b17
mov eax, dword [edi - 0xc]
test eax, eax
je 0x402aca
push 2
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402180
mov eax, dword [eax]
push 0x546ee0
push eax
mov dword [ebp - 0x24], 3
call fcn.0051dbdb
add esp, 8
test eax, eax
setne al
test al, al
je 0x402aca
mov bl, 1
jmp 0x402acc
xor bl, bl
test byte [ebp - 0x24], 2
je 0x402af5
mov eax, dword [ebp - 0x38]
and dword [ebp - 0x24], 0xfffffffd
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402af5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x402b08
push 2
push 0x546ee0
lea ecx, [ebp - 0x1c]
call fcn.00402330
push 0x31
push str.Content_Type:_application_x_www_form_urlencoded_r_n
lea ecx, [ebp - 0x1c]
call fcn.00402330
mov eax, dword [ebp + 0x20]
xor edi, edi
push edi
push edi
cmp dword [eax - 0xc], edi
jne 0x402b2c
mov ecx, dword [ebp - 0x30]
push edi
push 1
push ecx
jmp 0x402b33
mov edx, dword [ebp - 0x30]
push eax
push 3
push edx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
push edi
push edi
push 3
push edi
push edi
push ecx
push edx
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
mov dword [ebp - 0x3c], eax
cmp eax, edi
je 0x402bae
mov bl, byte [ebp - 0xd]
mov dword [ebp - 0x44], 0x546ea8
mov dword [ebp - 0x40], edi
mov ecx, 0x84000100
test bl, bl
je 0x402b79
mov ecx, 0x84800100
mov edx, dword [ebp - 0x28]
push 0
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp + 0x10]
push 0
push str.HTTP_1.0
push edx
push ecx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test bl, bl
je 0x402bae
push 4
lea edx, [ebp - 0x34]
push edx
push 0x1f
push edi
mov dword [ebp - 0x34], 0x3180
call esi
mov byte [ebp - 0xd], 0
test edi, edi
je 0x402d5a
push 4
lea eax, [ebp - 0x2c]
push eax
push 0x41
push edi
mov dword [ebp - 0x2c], 1
call esi
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 0x94
push edi
mov dword [ebp - 0x2c], 2
call esi
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx - 0xc]
push edx
mov edx, dword [ebp + 0x14]
push edx
push eax
push ecx
push edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x402d4e
push 0x2800
call fcn.0041d9bb
mov esi, eax
add esp, 4
test esi, esi
je 0x402d4e
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x18]
push ecx
push esi
push 0x13
push edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x18], 0x27ff
call ebx
test eax, eax
je 0x402d39
cmp byte [esi], 0x32
jne 0x402d39
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x18]
push eax
push esi
push 1
push edi
mov dword [ebp - 0x18], 0x27ff
call ebx
test eax, eax
je 0x402cd7
mov ecx, dword [ebp - 0x18]
mov byte [ecx + esi], 0
push esi
lea ecx, [ebp - 0x20]
call fcn.00401680
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xf
call fcn.004020a0
mov ecx, dword [ebp - 0x20]
cmp dword [ecx - 0xc], 0
jl 0x402ccb
push str.utf_8
push ecx
call fcn.0051dac5
mov ecx, dword [ebp - 0x20]
add esp, 8
test eax, eax
je 0x402ca7
sub eax, ecx
cmp eax, 0xffffffff
jne 0x402cc7
cmp dword [ecx - 0xc], 0
jl 0x402ccb
push str.utf8
push ecx
call fcn.0051dac5
add esp, 8
test eax, eax
je 0x402ccb
sub eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x402ccb
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.00401270
lea edx, [ebp - 0x18]
push edx
push 0x27ff
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x402d3c
nop
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x402d3c
mov byte [eax + esi], 0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402d00
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.00402330
lea eax, [ebp - 0x18]
push eax
push 0x27ff
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x402cf0
push esi
call fcn.0041d9c6
add esp, 4
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x402d5d
mov ebx, dword [ebp + 8]
push esi
call fcn.0041d9c6
add esp, 4
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x402d5d
mov ebx, dword [ebp + 8]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x402d5d
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x402d6b
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x402d79
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp byte [ebp - 0xd], 0
jne 0x402dc1
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jl 0x402da0
push str.charsetutf_8
push eax
call fcn.0051dac5
add esp, 8
test eax, eax
je 0x402da0
sub eax, dword [ebx]
cmp eax, 0xffffffff
jne 0x402dc1
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jl 0x402e1c
push str.charset_utf_8_
push eax
call fcn.0051dac5
add esp, 8
test eax, eax
je 0x402e1c
sub eax, dword [ebx]
cmp eax, 0xffffffff
je 0x402e1c
mov eax, dword [ebx]
push 0
push 0xfde9
push ecx
sub eax, 0x10
mov dword [ebp - 0x3c], esp
mov esi, esp
push eax
call fcn.00401350
lea ecx, [ebp - 0x3c]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00402480
add esp, 0x10
push eax
mov ecx, ebx
mov byte [ebp - 4], 0x10
call fcn.004023f0
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402e1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ea8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ecb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402eee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret