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

Disassembly:
sub esp, 0x51c
push ebx
push ebp
push esi
push edi
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0x64]
xor ebp, ebp
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x530]
or ecx, 0xffffffff
xor ebx, ebx
lea edx, [esp + 0x12c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x3a
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x14], ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x1c], ebp
and ecx, 3
mov dword [esp + 0x18], ebp
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x130]
mov dword [esp + 0x30], 0x47fc64
push ecx
mov dword [esp + 0x38], ebp
call fcn.00443450
add esp, 8
cmp eax, ebp
je 0x41a592
mov byte [eax], bl
inc eax
push eax
call fcn.004429fd
add esp, 4
mov dword [esp + 0x18], eax
push ebp
push ebp
mov ecx, 0xc
mov esi, str.Content_Type:_application_x_www_form_urlencoded
lea edi, [esp + 0x3c]
push ebp
push ebp
push str.Http
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebp
mov dword [esp + 0x28], eax
jne 0x41a5dd
call dword [0x46c1f0]
push eax
push str.InternetOpen_Error
lea edx, [esp + 0x6c]
push str._s:__x
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x41a8e2
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push 3
push ebp
push ebp
lea edx, [esp + 0x140]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x18], edi
jne 0x41a612
call dword [0x46c1f0]
push eax
push str.InternetConnect_Error
jmp 0x41a86f
mov edx, dword [esp + 0x534]
push ebp
lea ecx, [esp + 0x30]
push 0x84000000
push ecx
push ebp
push str.HTTP_1.0
push edx
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x1c], esi
jne 0x41a665
call dword [0x46c1f0]
push eax
push str.HttpOpenRequest_Error
lea eax, [esp + 0x6c]
push str._s:__x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x41a852
mov edx, dword [esp + 0x538]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x34]
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
push ecx
lea ecx, [esp + 0x40]
push ecx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x41a6bb
call dword [0x46c1f0]
push eax
push str.HttpSendRequest_Error
lea edx, [esp + 0x6c]
push str._s:__d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x41a84e
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0x16
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ecx, dword [esp + 0x10]
inc ecx
push ecx
call fcn.00460f0e
add esp, 4
lea edx, [esp + 0x10]
mov edi, eax
push 0
push edx
push edi
push 0x16
push esi
mov dword [esp + 0x34], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x41a720
call dword [0x46c1f0]
push eax
push str.HttpQueryInfo
lea eax, [esp + 0x6c]
push str._s:__x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
call fcn.00460f37
add esp, 0x14
jmp 0x41a830
mov ecx, dword [esp + 0x10]
push 0x7d01
mov byte [edi + ecx], 0
call fcn.00460f0e
add esp, 4
lea edx, [esp + 0x10]
mov edi, eax
push edx
push 0x7d00
push edi
push esi
mov dword [esp + 0x24], edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41a806
jmp 0x41a75b
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov byte [edi + eax], 0
mov esi, dword [esp + 0x10]
add ebp, esi
mov dword [esp + 0x24], ebp
inc ebp
push ebp
call fcn.00460f0e
mov ebp, eax
add esp, 4
test ebx, ebx
mov byte [ebp], 0
je 0x41a7ad
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00460f37
mov edi, dword [esp + 0x18]
add esp, 4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ebp
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 + 0x10]
test eax, eax
je 0x41a828
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push 0x7d00
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x41a757
mov esi, dword [esp + 0x1c]
push edi
call fcn.00460f37
add esp, 4
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x41a82c
push ebx
call fcn.00460f37
add esp, 4
xor ebx, ebx
jmp 0x41a82c
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
test edi, edi
je 0x41a83d
push edi
call fcn.00460f37
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41a84e
push eax
call fcn.00460f37
add esp, 4
mov edi, dword [esp + 0x18]
xor ebp, ebp
cmp esi, ebp
je 0x41a882
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x41a882
call dword [0x46c1f0]
push eax
push str.CloseHandle_Error
lea eax, [esp + 0x6c]
push str._s:__x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp edi, ebp
je 0x41a8b0
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x41a8b0
call dword [0x46c1f0]
push eax
push str.CloseHandle_Error
lea ecx, [esp + 0x6c]
push str._s:__x
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x41a8de
call dword [0x46c1f0]
push eax
push str.CloseHandle_Error
lea eax, [esp + 0x6c]
push str._s:__x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp ebx, ebp
jne 0x41a94b
push 0x400
call fcn.00460f0e
mov edx, eax
mov edi, str.ERR_700:
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [edx], ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x64]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x51c
ret
push str.error
push ebx
call fcn.00441f40
add esp, 8
test eax, eax
jne 0x41aa9a
push str.html
push ebx
call fcn.00441f40
add esp, 8
test eax, eax
jne 0x41aa9a
push str.HTML
push ebx
call fcn.00441f40
add esp, 8
test eax, eax
jne 0x41aa9a
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x41a9df
push ebx
call fcn.00460f37
push 0x400
call fcn.00460f0e
mov edx, eax
mov edi, str.ERR_800:
or ecx, 0xffffffff
xor eax, eax
add esp, 8
mov dword [edx], ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x51c
ret
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x1f40
jg 0x41aa69
cmp ecx, ebp
je 0x41aa69
lea ecx, [ecx + ecx + 0x100]
push ecx
call fcn.00460f0e
mov esi, eax
push esi
push ebx
mov dword [esi], ebp
call fcn.0042dea0
add esp, 0xc
test eax, eax
je 0x41aa4b
push ebx
call fcn.00460f37
add esp, 4
cmp esi, ebp
je 0x41aa33
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x41aa7f
push esi
call fcn.00460f37
add esp, 4
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x51c
ret
push esi
call fcn.00460f37
push ebx
call fcn.00460f37
add esp, 8
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x51c
ret
push ebx
call fcn.00460f37
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x51c
ret
push str.HttpReceiveData
push esi
call fcn.0042ce90
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x51c
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x51c
ret