Function at 0x418680
Capabilities:
Parse url
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x149c
call fcn.004a3ec0
mov eax, dword [0x57b070]
xor eax, esp
mov dword [esp + 0x1498], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
sub esp, 0xc
mov dword [esp + 0x24], edx
mov esi, ecx
mov dword [esp + 0x20], eax
xor edi, edi
call fcn.004182f0
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x418967
push 0x800
lea eax, [esp + 0x4a4]
push edi
push eax
call fcn.004a64e0
push 0x800
lea eax, [esp + 0xcb0]
push edi
push eax
call fcn.004a64e0
push 0x38
lea eax, [esp + 0x6c]
push edi
push eax
call fcn.004a64e0
add esp, 0x24
mov dword [esp + 0x4c], 0x3c
lea eax, [esp + 0x4a0]
mov dword [esp + 0x60], 0x800
mov dword [esp + 0x5c], eax
lea eax, [esp + 0xca0]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x4c]
push eax
push edi
push edi
push esi
mov dword [esp + 0x8c], 0x800
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov edx, dword [esp + 0x5c]
sub esp, 0x18
mov ecx, ebx
call fcn.00418390
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x18
mov dword [esp + 0x1c], eax
test eax, eax
je 0x418964
push edi
push 0x84000000
push edi
push edi
push edi
push dword [esp + 0x8c]
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
je 0x41895a
push str.Content_Type:_application_x_www_form_urlencoded_r_n
lea ecx, [esp + 0x8c]
call fcn.004189a0
cmp dword [esp + 0x9c], 8
lea eax, [esp + 0x88]
push 0x20000000
push dword [esp + 0x9c]
cmovae eax, dword [esp + 0x90]
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov esi, dword [ebp + 8]
lea edx, [esp + 0x24]
xorps xmm0, xmm0
mov dword [esp + 0x48], edi
sub esp, 0xc
mov dword [esp + 0x30], 0x28
movups xmmword [esp + 0x44], xmm0
mov ecx, ebx
mov dword [esp + 0x4c], esi
movups xmmword [esp + 0x34], xmm0
mov byte [esp + 0x1c], 0
call fcn.00418430
add esp, 0xc
test eax, eax
je 0x418821
mov edx, dword [esp + 0x18]
mov ecx, ebx
push esi
call fcn.004182a0
mov ecx, dword [esp + 0x14]
add esp, 4
test eax, eax
movzx ecx, cl
mov edx, 1
cmove ecx, edx
mov dword [esp + 0x10], ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpEndRequestW]
cmp byte [esp + 0x10], 0
je 0x418945
push 0x400
xor edi, edi
lea eax, [esp + 0xa4]
push edi
xor esi, esi
push eax
mov dword [esp + 0x1c], esi
call fcn.004a64e0
add esp, 0xc
test esi, esi
je 0x4188b5
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x14]
sub eax, edi
cmp esi, eax
jae 0x4188f7
add ecx, edi
jne 0x41887d
call fcn.004a93fd
mov dword [eax], 0x16
jmp 0x4188ac
cmp eax, esi
jb 0x418895
push esi
lea eax, [esp + 0xa4]
push eax
push ecx
call fcn.004a5f60
add esp, 0xc
jmp 0x4188b1
push eax
push 0
push ecx
call fcn.004a64e0
add esp, 0xc
call fcn.004a93fd
mov dword [eax], 0x22
call fcn.004a92f4
add edi, dword [esp + 0x10]
push 0x400
lea eax, [esp + 0xa4]
push 0
push eax
call fcn.004a64e0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x400
lea eax, [esp + 0xa8]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x418945
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x41885b
jmp 0x418945
lea edx, [eax - 1]
add ecx, edi
test edx, edx
je 0x418945
test ecx, ecx
jne 0x418911
call fcn.004a93fd
mov dword [eax], 0x16
jmp 0x418940
cmp eax, edx
jb 0x418929
push edx
lea eax, [esp + 0xa4]
push eax
push ecx
call fcn.004a5f60
add esp, 0xc
jmp 0x418945
push eax
push 0
push ecx
call fcn.004a64e0
add esp, 0xc
call fcn.004a93fd
mov dword [eax], 0x22
call fcn.004a92f4
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
lea ecx, [esp + 0x88]
call fcn.00418a00
push dword [esp + 0x1c]
call esi
mov ebx, dword [esp + 0x20]
push ebx
call esi
mov ecx, dword [esp + 0x14a4]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret