Function at 0x402430
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 0x535e59
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x592dc4]
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.0041ec06
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402480
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.0041ec06
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4024ad
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.0041ec06
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4024da
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.0041ec06
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402507
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.00401fa0
mov eax, dword [eax]
push str.http:__
push eax
call fcn.0051daa4
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 0x402581
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4025c3
push 7
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00402380
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 9
call fcn.00402190
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 0x4025c3
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.00401fa0
mov eax, dword [eax]
push str.https:__
push eax
call fcn.0051daa4
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 0x402609
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x402656
push 8
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00402380
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0xb
call fcn.00402190
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 0x40264b
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 0x40267c
push 0x546f14
push eax
call fcn.0051dbe5
add esp, 8
test eax, eax
je 0x40267c
sub eax, dword [ebp + 0xc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402699
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00402190
push 1
push 0x546f14
lea ecx, [ebp - 0x28]
call fcn.004014f0
jmp 0x402713
push esi
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp + 0xc]
call fcn.00401fa0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call fcn.00402190
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 0x4026d6
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.00402380
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.00402190
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 0x402713
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 0x4027bc
mov edx, ecx
push 0x546f10
push edx
call fcn.0051dbe5
add esp, 8
test eax, eax
je 0x4027bc
sub eax, dword [ebp - 0x14]
mov esi, eax
cmp esi, 0xffffffff
je 0x4027bc
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00402380
mov eax, dword [eax]
push eax
call fcn.0051e144
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 0x40277f
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.00401fa0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xe
call fcn.00402190
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 0x4027bc
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 0x4027d4
push 3
push 0x546f0c
lea ecx, [ebp + 0x10]
call fcn.004014f0
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x4027f6
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4027e0
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.0051daa4
add esp, 8
test eax, eax
jne 0x4028b7
cmp dword [edi - 0xc], eax
jl 0x402831
push str.Content_Type:
push edi
call fcn.0051dbe5
add esp, 8
test eax, eax
je 0x402831
sub eax, edi
cmp eax, 0xffffffff
jne 0x4028b7
mov eax, dword [edi - 0xc]
test eax, eax
je 0x40286a
push 2
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401f20
mov eax, dword [eax]
push 0x546ef0
push eax
mov dword [ebp - 0x24], 3
call fcn.0051dcfb
add esp, 8
test eax, eax
setne al
test al, al
je 0x40286a
mov bl, 1
jmp 0x40286c
xor bl, bl
test byte [ebp - 0x24], 2
je 0x402895
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 0x402895
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4028a8
push 2
push 0x546ef0
lea ecx, [ebp - 0x1c]
call fcn.004020d0
push 0x31
push str.Content_Type:_application_x_www_form_urlencoded_r_n
lea ecx, [ebp - 0x1c]
call fcn.004020d0
mov eax, dword [ebp + 0x20]
xor edi, edi
push edi
push edi
cmp dword [eax - 0xc], edi
jne 0x4028cc
mov ecx, dword [ebp - 0x30]
push edi
push 1
push ecx
jmp 0x4028d3
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 0x40294e
mov bl, byte [ebp - 0xd]
mov dword [ebp - 0x44], 0x546eb8
mov dword [ebp - 0x40], edi
mov ecx, 0x84000100
test bl, bl
je 0x402919
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 0x40294e
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 0x402afa
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 0x402aee
push 0x2800
call fcn.0041dacb
mov esi, eax
add esp, 4
test esi, esi
je 0x402aee
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 0x402ad9
cmp byte [esi], 0x32
jne 0x402ad9
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 0x402a77
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.00401e40
mov ecx, dword [ebp - 0x20]
cmp dword [ecx - 0xc], 0
jl 0x402a6b
push str.utf_8
push ecx
call fcn.0051dbe5
mov ecx, dword [ebp - 0x20]
add esp, 8
test eax, eax
je 0x402a47
sub eax, ecx
cmp eax, 0xffffffff
jne 0x402a67
cmp dword [ecx - 0xc], 0
jl 0x402a6b
push str.utf8
push ecx
call fcn.0051dbe5
add esp, 8
test eax, eax
je 0x402a6b
sub eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x402a6b
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.004013a0
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 0x402adc
nop
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x402adc
mov byte [eax + esi], 0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402aa0
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.004020d0
lea eax, [ebp - 0x18]
push eax
push 0x27ff
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x402a90
push esi
call fcn.0041dad6
add esp, 4
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x402afd
mov ebx, dword [ebp + 8]
push esi
call fcn.0041dad6
add esp, 4
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x402afd
mov ebx, dword [ebp + 8]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x402afd
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x402b0b
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x402b19
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp byte [ebp - 0xd], 0
jne 0x402b61
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jl 0x402b40
push str.charsetutf_8
push eax
call fcn.0051dbe5
add esp, 8
test eax, eax
je 0x402b40
sub eax, dword [ebx]
cmp eax, 0xffffffff
jne 0x402b61
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jl 0x402bbc
push str.charset_utf_8_
push eax
call fcn.0051dbe5
add esp, 8
test eax, eax
je 0x402bbc
sub eax, dword [ebx]
cmp eax, 0xffffffff
je 0x402bbc
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.00401330
lea ecx, [ebp - 0x3c]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00402220
add esp, 0x10
push eax
mov ecx, ebx
mov byte [ebp - 4], 0x10
call fcn.00402190
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 0x402bbc
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 0x402bdf
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 0x402c02
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 0x402c25
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 0x402c48
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 0x402c6b
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 0x402c8e
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 0x402cb1
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