Function at 0x405410
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4118c7
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x41a008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x240], edx
mov ebx, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
push 0
mov dword [ebp - 0x22c], 0x200
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x230], 0x5c3c8f8
mov edi, dword [eax]
mov eax, dword [edi + 0x6a0]
test al, 1
jne 0x4054ec
or eax, 1
mov dword [edi + 0x6a0], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 1
movlpd qword [ebp - 0x23c], xmm0
mov edx, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x23c]
mov byte [edi + 0x2ac], 1
mov al, byte [ebp + ecx - 0x230]
mov byte [ecx + edi + 0x2a8], al
add ecx, 1
adc edx, 0
jne 0x4054db
cmp ecx, 4
jb 0x4054c0
push 0x413a70
call fcn.00410439
add esp, 4
mov byte [ebp - 4], 0
lea esi, [edi + 0x2a8]
mov ecx, esi
call fcn.0040da70
push esi
lea eax, [ebp - 0x1c]
push 5
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x238], eax
test eax, eax
je 0x40565d
push 0
push 0
push 3
push 0
push 0
push 0x50
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
test ebx, ebx
je 0x40564c
mov eax, dword [edi + 0x68c]
mov dword [ebp - 0x228], 0x312153c7
mov dword [ebp - 0x224], 0xcc654256
mov byte [ebp - 0x220], 0x8f
test al, 1
jne 0x4055c8
or eax, 1
mov dword [edi + 0x68c], eax
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movlpd qword [ebp - 0x234], xmm0
mov edx, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x234]
mov byte [edi + 0x1d5], 1
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x228]
mov byte [ecx + edi + 0x1cc], al
add ecx, 1
adc edx, 0
jne 0x4055bb
cmp ecx, 9
jb 0x4055a0
push 0x413a30
call fcn.00410439
add esp, 4
lea esi, [edi + 0x1cc]
mov ecx, esi
call fcn.0040da10
push 0
push 0x8404f700
push 0
push 0
push esi
push dword [ebp - 0x240]
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x40564c
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edi, dword [ebp - 0x244]
lea eax, [ebp - 0x230]
push eax
push 0x64
push edi
push esi
mov dword [ebp - 0x230], 0x64
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x230]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [edi + eax], 0
call esi
push ebx
call esi
mov eax, dword [ebp - 0x238]
jmp 0x405663
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
mov eax, dword [ebp - 0x238]
jmp 0x405663
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004100f0
mov esp, ebp
pop ebp
ret