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

Disassembly:
push 0xffffffffffffffff
push 0x44ee59
mov eax, dword fs:[0]
push eax
mov eax, 0x1148
mov dword fs:[0], esp
call fcn.00422e70
mov eax, dword [0x4664d0]
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 [0x4533f0]
xor eax, eax
mov byte [esp + 0x154], bl
mov ecx, 0x3ff
lea edi, [esp + 0x155]
rep stosd dword es:[edi], eax
mov ecx, dword [0x4533ec]
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 [0x4533f4]
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 0x40a9e2
sub eax, edi
push eax
push esi
lea ecx, [esp + 0x38]
call fcn.00402f40
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.00403140
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 0x4533e4
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.00402c40
add esp, 8
push eax
call fcn.00402c40
add esp, 8
mov ecx, eax
call fcn.00407ff0
push eax
call fcn.00402c40
add esp, 8
push eax
call fcn.00403d10
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 0x40aad0
sub eax, edi
push eax
push esi
lea ecx, [esp + 0xb8]
call fcn.00402f40
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.00408ff0
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 0x40ab42
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.004388a9
mov al, byte [esp + 0x16]
add esp, 4
cmp al, bl
jne 0x40ae9a
push ebx
push ebx
push ebx
push ebx
push 0x45339c
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, eax
cmp ecx, ebx
mov dword [esp + 0x20], ecx
je 0x40ae9a
cmp dword [esp + 0x80], edi
mov eax, dword [esp + 0x6c]
jae 0x40ab78
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 0x40ad6b
cmp byte [esi + 0x22], bl
mov ecx, 0x4c83000
jne 0x40abb4
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x64], 0x10
mov eax, dword [esp + 0x50]
jae 0x40abc3
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 0x40ad6b
lea edx, [esp + 0xb0]
push edx
lea ecx, [esp + 0xd0]
call fcn.00403340
mov ecx, dword [esp + 0x48]
mov edx, 0x10
cmp ecx, edx
mov ecx, dword [esp + 0x34]
jae 0x40ac10
lea ecx, [esp + 0x34]
cmp dword [eax + 0x18], edx
jb 0x40ac1a
mov eax, dword [eax + 4]
jmp 0x40ac1d
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.00402b70
cmp byte [esp + 0x12], bl
je 0x40ace7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x2f0d
jne 0x40ad5c
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.00403340
mov ecx, dword [esp + 0x48]
mov edx, 0x10
cmp ecx, edx
mov ecx, dword [esp + 0x34]
jae 0x40acb6
lea ecx, [esp + 0x34]
cmp dword [eax + 0x18], edx
jb 0x40acc0
mov eax, dword [eax + 4]
jmp 0x40acc3
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.00402b70
cmp byte [esp + 0x12], bl
jne 0x40ad5c
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 0x40ad5c
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40ad5c
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 0x40ad20
sub eax, edx
push eax
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x8c]
call fcn.00407dd0
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 0x40ad06
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov edi, dword [esp + 0x24]
jmp 0x40ad71
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x20]
push eax
call esi
cmp edi, ebx
je 0x40ad7f
push edi
call esi
cmp byte [esp + 0x13], bl
je 0x40ae95
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.00402e50
mov eax, dword [esp + 0x9c]
mov edi, 0x10
cmp eax, edi
mov dword [esp + 0x1c], 1
jb 0x40add8
mov edx, dword [esp + 0x88]
push edx
call fcn.004388a9
add esp, 4
cmp dword [esp + 0x64], edi
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
jb 0x40ae00
mov eax, dword [esp + 0x50]
push eax
call fcn.004388a9
add esp, 4
cmp dword [esp + 0x80], edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jb 0x40ae22
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004388a9
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.004024d0
lea ecx, [esp + 0x120]
mov dword [esp + 0x120], 0x452c34
call fcn.00431807
cmp dword [esp + 0x48], edi
jb 0x40ae6f
mov edx, dword [esp + 0x34]
push edx
call fcn.004388a9
add esp, 4
cmp dword [esp + 0x1190], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x40af99
mov eax, dword [esp + 0x117c]
push eax
jmp 0x40af91
mov edi, 0x10
mov esi, dword [esp + 0x1168]
push ebx
mov ebp, 0xf
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push 0x4531bb
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00402f40
cmp dword [esp + 0x9c], edi
mov dword [esp + 0x1c], 1
jb 0x40aedd
mov ecx, dword [esp + 0x88]
push ecx
call fcn.004388a9
add esp, 4
cmp dword [esp + 0x64], edi
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
jb 0x40af05
mov edx, dword [esp + 0x50]
push edx
call fcn.004388a9
add esp, 4
cmp dword [esp + 0x80], edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jb 0x40af27
mov eax, dword [esp + 0x6c]
push eax
call fcn.004388a9
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.004024d0
lea ecx, [esp + 0x120]
mov dword [esp + 0x120], 0x452c34
call fcn.00431807
cmp dword [esp + 0x48], edi
jb 0x40af74
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004388a9
add esp, 4
cmp dword [esp + 0x1190], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x40af99
mov edx, dword [esp + 0x117c]
push edx
call fcn.004388a9
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.00422ede
add esp, 0x1154
ret 0x2c