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

Disassembly:
push 0xffffffffffffffff
push 0x45c549
mov eax, dword fs:[0]
push eax
mov eax, 0x1148
mov dword fs:[0], esp
call fcn.00430560
mov eax, dword [0x4774f0]
push ebx
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0x1150], eax
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x1170]
mov edx, dword [0x461430]
xor eax, eax
mov byte [esp + 0x154], bl
mov ecx, 0x3ff
lea edi, [esp + 0x155]
rep stosd dword es:[edi], eax
mov ecx, dword [0x46142c]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [str.Accept:___r_n]
mov dword [esp + 0xa0], eax
mov ax, word [0x461434]
mov word [esp + 0xac], ax
mov eax, esi
mov dword [esp + 0x1160], 1
mov byte [esp + 0x13], bl
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a7f2
sub eax, edi
push eax
push esi
lea ecx, [esp + 0x38]
call fcn.00403690
mov ebp, dword [esp + 0x44]
push 1
push 3
lea ecx, [esp + 0xd4]
mov byte [esp + 0x1168], 2
mov dword [esp + 0x30], 0x400000
mov dword [esp + 0x34], 4
call fcn.00404000
mov esi, 0xf
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
lea ecx, [esp + 0x1178]
push ecx
push 0x461424
push ebp
push str.Content_Type:_application_x_www_form_urlencoded_r_nContent_Length:
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0xe8]
push eax
mov byte [esp + 0x1178], 6
call fcn.00403000
add esp, 8
push eax
call fcn.00403000
add esp, 8
mov ecx, eax
call fcn.00403320
push eax
call fcn.00403000
add esp, 8
push eax
call fcn.00406380
mov dword [esp + 0xd0], esi
mov esi, dword [esp + 0x1174]
mov eax, esi
add esp, 8
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a8e0
sub eax, edi
push eax
push esi
lea ecx, [esp + 0xb8]
call fcn.00403690
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0xb8]
push eax
mov ecx, esi
mov byte [esp + 0x116c], 7
call fcn.00409fb0
mov ecx, dword [esp + 0xc8]
neg al
sbb al, al
inc al
mov edi, 0x10
cmp ecx, edi
mov byte [esp + 0x12], al
mov byte [esp + 0x1160], 6
jb 0x40a952
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.00446038
mov al, byte [esp + 0x16]
add esp, 4
cmp al, bl
jne 0x40acaa
push ebx
push ebx
push ebx
push ebx
push 0x4613d8
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, eax
cmp ecx, ebx
mov dword [esp + 0x20], ecx
je 0x40acaa
cmp dword [esp + 0x80], edi
mov eax, dword [esp + 0x6c]
jae 0x40a988
lea eax, [esp + 0x6c]
mov dl, byte [esi + 0x22]
push 1
neg dl
push ebx
push 3
push ebx
push ebx
sbb edx, edx
and edx, 0x16b
add edx, 0x50
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x24], edi
je 0x40ab7b
cmp byte [esi + 0x22], bl
mov ecx, 0x4c83000
jne 0x40a9c4
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x64], 0x10
mov eax, dword [esp + 0x50]
jae 0x40a9d3
lea eax, [esp + 0x50]
push 1
push ecx
lea ecx, [esp + 0xa8]
push ecx
push ebx
push ebx
push eax
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
cmp esi, ebx
je 0x40ab7b
lea edx, [esp + 0xb0]
push edx
lea ecx, [esp + 0xd0]
call fcn.00405580
mov ecx, dword [esp + 0x48]
mov edx, 0x10
cmp ecx, edx
mov ecx, dword [esp + 0x34]
jae 0x40aa20
lea ecx, [esp + 0x34]
cmp dword [eax + 0x18], edx
jb 0x40aa2a
mov eax, dword [eax + 4]
jmp 0x40aa2d
add eax, 4
mov edi, dword [sym.imp.WININET.dll_HttpSendRequestA]
push ebp
push ecx
push 0xffffffffffffffff
push eax
push esi
call edi
neg eax
sbb al, al
inc al
lea ecx, [esp + 0xb0]
mov byte [esp + 0x12], al
call fcn.00402e40
cmp byte [esp + 0x12], bl
je 0x40aaf7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x2f0d
jne 0x40ab6c
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
mov edx, dword [esp + 0x18]
or edx, 0x100
push 4
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x1c]
push edx
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0xd0]
call fcn.00405580
mov ecx, dword [esp + 0x48]
mov edx, 0x10
cmp ecx, edx
mov ecx, dword [esp + 0x34]
jae 0x40aac6
lea ecx, [esp + 0x34]
cmp dword [eax + 0x18], edx
jb 0x40aad0
mov eax, dword [eax + 4]
jmp 0x40aad3
add eax, 4
push ebp
push ecx
push 0xffffffffffffffff
push eax
push esi
call edi
neg eax
sbb al, al
inc al
lea ecx, [esp + 0xb0]
mov byte [esp + 0x12], al
call fcn.00402e40
cmp byte [esp + 0x12], bl
jne 0x40ab6c
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0x14]
push ecx
push 0xfff
lea edx, [esp + 0x15c]
push edx
push esi
call ebp
cmp eax, ebx
je 0x40ab6c
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40ab6c
mov byte [esp + eax + 0x154], bl
lea eax, [esp + 0x154]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ab30
sub eax, edx
push eax
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x8c]
call fcn.00403580
lea ecx, [esp + 0x14]
push ecx
push 0xfff
lea edx, [esp + 0x15c]
push edx
push esi
mov byte [esp + 0x23], 1
call ebp
cmp eax, ebx
jne 0x40ab16
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov edi, dword [esp + 0x24]
jmp 0x40ab81
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x20]
push eax
call esi
cmp edi, ebx
je 0x40ab8f
push edi
call esi
cmp byte [esp + 0x13], bl
je 0x40aca5
mov esi, dword [esp + 0x1168]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x8c]
mov ebp, 0xf
push ecx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00403490
mov eax, dword [esp + 0x9c]
mov edi, 0x10
cmp eax, edi
mov dword [esp + 0x1c], 1
jb 0x40abe8
mov edx, dword [esp + 0x88]
push edx
call fcn.00446038
add esp, 4
cmp dword [esp + 0x64], edi
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
jb 0x40ac10
mov eax, dword [esp + 0x50]
push eax
call fcn.00446038
add esp, 4
cmp dword [esp + 0x80], edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jb 0x40ac32
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00446038
add esp, 4
lea ecx, [esp + 0x120]
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
mov byte [esp + 0x1160], 2
call fcn.004026f0
lea ecx, [esp + 0x120]
mov dword [esp + 0x120], 0x460c84
call fcn.0043ef7a
cmp dword [esp + 0x48], edi
jb 0x40ac7f
mov edx, dword [esp + 0x34]
push edx
call fcn.00446038
add esp, 4
cmp dword [esp + 0x1190], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x40ada9
mov eax, dword [esp + 0x117c]
push eax
jmp 0x40ada1
mov edi, 0x10
mov esi, dword [esp + 0x1168]
push ebx
mov ebp, 0xf
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push 0x4663fc
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00403690
cmp dword [esp + 0x9c], edi
mov dword [esp + 0x1c], 1
jb 0x40aced
mov ecx, dword [esp + 0x88]
push ecx
call fcn.00446038
add esp, 4
cmp dword [esp + 0x64], edi
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
jb 0x40ad15
mov edx, dword [esp + 0x50]
push edx
call fcn.00446038
add esp, 4
cmp dword [esp + 0x80], edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jb 0x40ad37
mov eax, dword [esp + 0x6c]
push eax
call fcn.00446038
add esp, 4
lea ecx, [esp + 0x120]
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
mov byte [esp + 0x1160], 2
call fcn.004026f0
lea ecx, [esp + 0x120]
mov dword [esp + 0x120], 0x460c84
call fcn.0043ef7a
cmp dword [esp + 0x48], edi
jb 0x40ad84
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00446038
add esp, 4
cmp dword [esp + 0x1190], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x40ada9
mov edx, dword [esp + 0x117c]
push edx
call fcn.00446038
add esp, 4
mov ecx, dword [esp + 0x1158]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1148]
pop ebx
call fcn.004305ce
add esp, 0x1154
ret 0x2c