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

Disassembly:
push 0xffffffffffffffff
push 0x46a0fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x524
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x48e488
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], ebx
call fcn.0045dd36
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0x6c]
xor ebp, ebp
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x548]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x134]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x3a
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x540], 1
and ecx, 3
mov dword [esp + 0x18], ebx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x138]
mov dword [esp + 0x20], ebx
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], 0x487f20
mov dword [esp + 0x40], ebx
call fcn.0043b0c0
add esp, 8
test eax, eax
je 0x4116d5
mov byte [eax], 0
inc eax
push eax
call fcn.0043ad5b
add esp, 4
mov dword [esp + 0x1c], eax
push 0
push 0
mov ecx, 0xc
mov esi, str.Content_Type:_application_x_www_form_urlencoded
lea edi, [esp + 0x44]
push 0
push 0
push str.Http
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x411723
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetOpen_Error
lea edx, [esp + 0x74]
push str._s:__x
push edx
call fcn.0043ac7e
add esp, 0x10
jmp 0x411a26
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 3
push 0
push 0
lea edx, [esp + 0x148]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
jne 0x411766
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetConnect_Error
lea eax, [esp + 0x74]
push str._s:__x
push eax
jmp 0x4119bc
mov edx, dword [esp + 0x54c]
push 0
lea ecx, [esp + 0x38]
push 0x84000000
push ecx
push 0
push str.HTTP_1.0
push edx
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
mov dword [esp + 0x28], esi
jne 0x4117ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpOpenRequest_Error
lea eax, [esp + 0x74]
push str._s:__x
push eax
call fcn.0043ac7e
add esp, 0x10
jmp 0x411997
mov edx, dword [esp + 0x550]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x3c]
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
push ecx
lea ecx, [esp + 0x48]
push ecx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x41180f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpSendRequest_Error
lea edx, [esp + 0x74]
push str._s:__d
push edx
call fcn.0043ac7e
add esp, 0x10
jmp 0x411993
lea eax, [esp + 0x14]
push 0
push eax
push 0
push 0x16
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ecx, dword [esp + 0x14]
inc ecx
push ecx
call fcn.0045da09
add esp, 4
lea edx, [esp + 0x14]
mov edi, eax
push 0
push edx
push edi
push 0x16
push esi
mov dword [esp + 0x2c], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x41186d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpQueryInfo
lea eax, [esp + 0x74]
push str._s:__x
push eax
call fcn.0043ac7e
add esp, 0x10
jmp 0x411979
mov ecx, dword [esp + 0x14]
push 0x7d01
mov byte [edi + ecx], 0
call fcn.0045da09
add esp, 4
lea edx, [esp + 0x14]
mov ebx, eax
push edx
push 0x7d00
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41194f
jmp 0x4118a4
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov byte [ebx + eax], 0
mov esi, dword [esp + 0x14]
add ebp, esi
mov dword [esp + 0x30], ebp
inc ebp
push ebp
call fcn.0045da09
mov edx, dword [esp + 0x24]
mov ebp, eax
add esp, 4
test edx, edx
mov byte [ebp], 0
je 0x4118f6
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0045da32
add esp, 4
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x20], ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x411971
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
push 0x7d00
push ebx
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4118a0
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
push ebx
call fcn.0045da32
mov eax, dword [esp + 0x24]
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x411979
push eax
call fcn.0045da32
add esp, 4
mov dword [esp + 0x20], ebx
jmp 0x411979
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
test edi, edi
je 0x411986
push edi
call fcn.0045da32
add esp, 4
test ebx, ebx
je 0x411993
push ebx
call fcn.0045da32
add esp, 4
mov edi, dword [esp + 0x1c]
test esi, esi
je 0x4119c4
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x4119c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CloseHandle_Error
lea edx, [esp + 0x74]
push str._s:__x
push edx
call fcn.0043ac7e
add esp, 0x10
test edi, edi
je 0x4119f1
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x4119f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CloseHandle_Error
lea eax, [esp + 0x74]
push str._s:__x
push eax
call fcn.0043ac7e
add esp, 0x10
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x411a1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CloseHandle_Error
lea edx, [esp + 0x74]
push str._s:__x
push edx
call fcn.0043ac7e
add esp, 0x10
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x411a5f
push str.ERR_500:
lea ecx, [esp + 0x14]
call fcn.0045de51
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x10]
push eax
call fcn.0045e0a4
mov esi, dword [esp + 0x544]
push 0
mov ecx, esi
call fcn.0045dd36
mov dword [esp + 0x2c], 1
jmp 0x411b85
push esi
lea ecx, [esp + 0x14]
call fcn.0045de51
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x411a98
push str.error
lea ecx, [esp + 0x14]
call fcn.0045c039
test eax, eax
jge 0x411a98
push str.html
lea ecx, [esp + 0x14]
call fcn.0045c039
test eax, eax
jle 0x411aa6
push str.ERR_500:
lea ecx, [esp + 0x14]
call fcn.0045de51
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push esi
call fcn.0045dd36
lea edx, [esp + 0x28]
push edx
call fcn.0040da90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x540], 2
call fcn.0045de01
lea ecx, [esp + 0x24]
mov byte [esp + 0x53c], 1
call fcn.0045dcc8
push 1
push 3
lea ecx, [esp + 0x20]
call fcn.0045bcd3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.00439ed6
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setg bl
call fcn.0045dcc8
test bl, bl
je 0x411b61
lea edx, [esp + 0x18]
push 3
push edx
lea ecx, [esp + 0x18]
call fcn.0045bf9f
mov eax, dword [esp + 0x18]
push 0x487798
push eax
mov byte [esp + 0x544], 3
call fcn.00439ed6
add esp, 8
test eax, eax
je 0x411b50
push str.ERR_500:
lea ecx, [esp + 0x14]
call fcn.0045de51
lea ecx, [esp + 0x18]
mov byte [esp + 0x53c], 1
call fcn.0045dcc8
push esi
call fcn.0045da32
mov esi, dword [esp + 0x548]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0045da3d
mov dword [esp + 0x2c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x53c], 0
call fcn.0045dcc8
mov ecx, dword [esp + 0x534]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x530
ret