Function at 0x402d10
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 0x423185
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x42b6d0]
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
xor esi, esi
mov dword [ebp - 0x488], ebx
mov dword [ebp - 0x490], esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x54], 0x10
mov eax, dword [ebp + 0x40]
jae 0x402d5d
lea eax, [ebp + 0x40]
push esi
push esi
push esi
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x490], eax
cmp eax, esi
jne 0x402e56
mov edi, 0x4f840a
lea esi, [ebp - 0x46c]
call fcn.00408200
mov esi, eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, esi
mov edi, 0xf
mov ecx, eax
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x402db0
sub ecx, esi
push ecx
push eax
mov ecx, ebx
call fcn.00401640
xor eax, eax
mov esi, 0x10
mov dword [ebp - 0x46c], eax
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
mov word [ebp - 0x44c], ax
cmp dword [ebp + 0x1c], esi
jb 0x402e11
mov eax, dword [ebp + 8]
push eax
call fcn.0040bf91
add esp, 4
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp dword [ebp + 0x38], esi
jb 0x402e30
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.0040bf91
add esp, 4
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x34], 0
mov byte [ebp + 0x24], 0
cmp dword [ebp + 0x54], esi
jb 0x402e4f
mov edx, dword [ebp + 0x40]
push edx
call fcn.0040bf91
add esp, 4
mov eax, ebx
jmp 0x403583
mov edx, 7
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x434], edx
mov dword [ebp - 0x438], eax
mov word [ebp - 0x448], cx
xor ebx, ebx
mov byte [ebp - 4], 4
cmp dword [ebp + 0x18], ebx
jbe 0x402f64
cmp dword [ebp + 0x1c], 0x10
mov ecx, dword [ebp + 8]
jae 0x402e8d
lea ecx, [ebp + 8]
movsx cx, byte [ecx + ebx]
movzx edi, cx
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 1
jbe 0x402f5a
lea esi, [eax + 1]
cmp esi, 0x7ffffffe
ja 0x402f5a
cmp edx, esi
jae 0x402ec6
push eax
push esi
lea edx, [ebp - 0x448]
push edx
call fcn.00407b40
jmp 0x402ee6
test esi, esi
jne 0x402ef4
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x438], esi
cmp edx, 8
jae 0x402ee1
lea eax, [ebp - 0x448]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x438]
mov edx, dword [ebp - 0x434]
test esi, esi
setne cl
test cl, cl
je 0x402f3d
mov ecx, dword [ebp - 0x448]
cmp edx, 8
jae 0x402f0c
lea ecx, [ebp - 0x448]
mov word [ecx + eax*2], di
cmp dword [ebp - 0x434], 8
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x438], esi
jae 0x402f2b
lea eax, [ebp - 0x448]
xor edx, edx
mov word [eax + esi*2], dx
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x438]
inc ebx
cmp ebx, dword [ebp + 0x18]
jb 0x402e81
cmp edx, 8
jb 0x402f64
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x48c], eax
jmp 0x402f70
push str.string_too_long
call fcn.0040ab38
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x48c], ecx
mov edx, 7
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x41c], eax
mov word [ebp - 0x42c], cx
xor ebx, ebx
mov byte [ebp - 4], 5
cmp dword [ebp + 0x34], ebx
jbe 0x403069
jmp 0x402fa0
cmp dword [ebp + 0x38], 0x10
mov ecx, dword [ebp + 0x24]
jae 0x402fac
lea ecx, [ebp + 0x24]
movsx cx, byte [ecx + ebx]
movzx edi, cx
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 1
jbe 0x402f5a
lea esi, [eax + 1]
cmp esi, 0x7ffffffe
ja 0x402f5a
cmp edx, esi
jae 0x402fdd
push eax
push esi
lea edx, [ebp - 0x42c]
push edx
call fcn.00407b40
jmp 0x402ffd
test esi, esi
jne 0x40300b
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x41c], esi
cmp edx, 8
jae 0x402ff8
lea eax, [ebp - 0x42c]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x41c]
mov edx, dword [ebp - 0x418]
test esi, esi
setne cl
test cl, cl
je 0x403054
mov ecx, dword [ebp - 0x42c]
cmp edx, 8
jae 0x403023
lea ecx, [ebp - 0x42c]
mov word [ecx + eax*2], di
cmp dword [ebp - 0x418], 8
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x41c], esi
jae 0x403042
lea eax, [ebp - 0x42c]
xor edx, edx
mov word [eax + esi*2], dx
mov edx, dword [ebp - 0x418]
mov eax, dword [ebp - 0x41c]
inc ebx
cmp ebx, dword [ebp + 0x34]
jb 0x402fa0
mov esi, dword [ebp - 0x42c]
cmp edx, 8
jae 0x40306f
lea esi, [ebp - 0x42c]
mov eax, dword [ebp - 0x48c]
mov ecx, dword [ebp - 0x490]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
jne 0x4031c7
mov ecx, 0x44
xor eax, eax
lea esp, [esp]
mov dl, byte [eax + str._r2_:__]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x478], dl
jns 0x4030c0
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x2b
jl 0x4030a0
mov byte [ebp - 0x44d], bl
mov esi, dword [ebp - 0x488]
mov byte [ebp - 4], 6
mov edi, 0xf
lea eax, [ebp - 0x478]
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4030f0
sub eax, edx
push eax
lea eax, [ebp - 0x478]
push eax
mov ecx, esi
call fcn.00401640
push 0x2c
lea ecx, [ebp - 0x478]
push ebx
push ecx
call fcn.004147a0
add esp, 0xc
cmp dword [ebp - 0x418], 8
jb 0x403132
mov edx, dword [ebp - 0x42c]
push edx
call fcn.0040bf91
add esp, 4
xor eax, eax
cmp dword [ebp - 0x434], 8
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], ebx
mov word [ebp - 0x42c], ax
jb 0x403163
mov ecx, dword [ebp - 0x448]
push ecx
call fcn.0040bf91
add esp, 4
xor edx, edx
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], ebx
mov word [ebp - 0x448], dx
jb 0x40318e
mov eax, dword [ebp + 8]
push eax
call fcn.0040bf91
add esp, 4
cmp dword [ebp + 0x38], 0x10
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], 0
jb 0x4031aa
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.0040bf91
add esp, 4
cmp dword [ebp + 0x54], 0x10
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x34], ebx
mov byte [ebp + 0x24], 0
jb 0x403581
mov edx, dword [ebp + 0x40]
push edx
jmp 0x403579
push ebx
push ebx
lea ecx, [ebp - 0x494]
push ecx
push ebx
push ebx
push esi
push 0x427634
push eax
mov dword [ebp - 0x494], str.text_
mov dword [ebp - 0x490], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
cmp esi, ebx
jne 0x403334
mov ecx, 0x44
xor eax, eax
mov dl, byte [eax + str._f127_a9__]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x478], dl
jns 0x403220
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x2a
jl 0x403200
mov byte [ebp - 0x44e], bl
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + eax - 0x478]
mov eax, dword [ebp - 0x488]
mov edi, 0xf
mov dword [eax + 0x14], edi
mov dword [eax + 0x10], ebx
mov byte [eax], 0
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403256
sub eax, esi
push eax
push ecx
mov ecx, dword [ebp - 0x488]
call fcn.00401640
push 0x2b
lea eax, [ebp - 0x478]
push ebx
push eax
call fcn.004147a0
add esp, 0xc
cmp dword [ebp - 0x418], 8
jb 0x403296
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.0040bf91
add esp, 4
xor edx, edx
cmp dword [ebp - 0x434], 8
mov esi, 7
mov word [ebp - 0x42c], dx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], esi
jb 0x4032c8
mov eax, dword [ebp - 0x448]
push eax
call fcn.0040bf91
add esp, 4
mov dword [ebp - 0x434], esi
xor ecx, ecx
mov esi, 0x10
mov word [ebp - 0x448], cx
mov dword [ebp - 0x438], ebx
cmp dword [ebp + 0x1c], esi
jb 0x4032f3
mov edx, dword [ebp + 8]
push edx
call fcn.0040bf91
add esp, 4
mov byte [ebp + 8], 0
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], edi
cmp dword [ebp + 0x38], esi
jb 0x40330e
mov eax, dword [ebp + 0x24]
push eax
call fcn.0040bf91
add esp, 4
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x34], ebx
mov byte [ebp + 0x24], 0
cmp dword [ebp + 0x54], esi
jb 0x403329
mov ecx, dword [ebp + 0x40]
push ecx
call fcn.0040bf91
add esp, 4
mov eax, dword [ebp - 0x488]
jmp 0x403583
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, ebx
jne 0x4033c9
mov ecx, 0x43
xor eax, eax
mov edi, edi
mov dl, byte [eax + 0x427668]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x484], dl
jns 0x403370
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x39
jl 0x403350
mov byte [ebp - 0x44b], bl
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + eax - 0x484]
mov eax, dword [ebp - 0x488]
mov edi, 0xf
mov dword [eax + 0x14], edi
mov dword [eax + 0x10], ebx
mov byte [eax], 0
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4033a6
sub eax, esi
push eax
push ecx
mov ecx, dword [ebp - 0x488]
call fcn.00401640
push 0x3a
lea eax, [ebp - 0x484]
jmp 0x403274
mov edi, 0xf
mov dword [ebp - 0x454], edi
mov dword [ebp - 0x458], ebx
mov byte [ebp - 0x468], bl
lea edx, [ebp - 0x48c]
push edx
push 0x400
lea eax, [ebp - 0x410]
push eax
mov byte [ebp - 4], 9
push esi
mov dword [ebp - 0x48c], 0xffffffff
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x48c]
push ecx
lea eax, [ebp - 0x410]
lea ecx, [ebp - 0x468]
call fcn.00405080
mov esi, dword [ebp - 0x488]
lea edx, [ebp - 0x468]
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], 0
cmp esi, edx
je 0x4034aa
cmp dword [esi + 0x14], 0x10
jb 0x40344a
mov eax, dword [esi]
push eax
call fcn.0040bf91
add esp, 4
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], 0
cmp dword [ebp - 0x454], 0x10
jae 0x403488
mov ecx, dword [ebp - 0x458]
inc ecx
push ecx
lea edx, [ebp - 0x468]
push edx
push esi
call fcn.0040b7b0
mov ecx, dword [ebp - 0x458]
mov edx, dword [ebp - 0x454]
add esp, 0xc
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
jmp 0x4034c2
mov eax, dword [ebp - 0x468]
mov ecx, dword [ebp - 0x458]
mov edx, dword [ebp - 0x454]
mov dword [esi], eax
mov dword [ebp - 0x468], ebx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
jmp 0x4034c2
cmp dword [ebp - 0x454], 0x10
jb 0x4034c2
mov eax, dword [ebp - 0x468]
push eax
call fcn.0040bf91
add esp, 4
cmp dword [ebp - 0x418], 8
mov dword [ebp - 0x454], edi
mov dword [ebp - 0x458], ebx
mov byte [ebp - 0x468], 0
jb 0x4034ed
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.0040bf91
add esp, 4
xor edx, edx
cmp dword [ebp - 0x434], 8
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], ebx
mov word [ebp - 0x42c], dx
jb 0x40351e
mov eax, dword [ebp - 0x448]
push eax
call fcn.0040bf91
add esp, 4
xor ecx, ecx
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], ebx
mov word [ebp - 0x448], cx
jb 0x403549
mov edx, dword [ebp + 8]
push edx
call fcn.0040bf91
add esp, 4
cmp dword [ebp + 0x38], 0x10
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], 0
jb 0x403565
mov eax, dword [ebp + 0x24]
push eax
call fcn.0040bf91
add esp, 4
cmp dword [ebp + 0x54], 0x10
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x34], ebx
mov byte [ebp + 0x24], 0
jb 0x403581
mov ecx, dword [ebp + 0x40]
push ecx
call fcn.0040bf91
add esp, 4
mov eax, esi
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.0040b61d
mov esp, ebp
pop ebp
ret