Function at 0x4599c8
Capabilities:
Access peb ldr_data
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x12
add esp, 0xfffff004
push eax
dec eax
jne 0x4599d1
mov eax, dword [ebp - 4]
add esp, 0xffffff30
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x120d4], ebx
mov dword [ebp - 0x120d0], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.0040435c
mov eax, dword [ebp - 8]
call fcn.0040435c
lea ebx, [ebp - 0x58]
xor eax, eax
push ebp
push 0x459cf1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00403eac
lea eax, [ebp - 0x459]
mov edx, 0x401
call fcn.00406798
lea eax, [ebp - 0x85a]
mov edx, 0x401
call fcn.00406798
lea eax, [ebp - 0x107f]
mov edx, 0x401
call fcn.00406798
lea eax, [ebp - 0x18a4]
mov edx, 0x401
call fcn.00406798
lea eax, [ebp - 0x20c9]
mov edx, 0x401
call fcn.00406798
mov dword [ebx], 0x3c
lea eax, [ebp - 0x107f]
mov dword [ebx + 4], eax
mov dword [ebx + 8], 0x824
xor eax, eax
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x18a4]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0x824
mov word [ebx + 0x18], 0
mov word [ebx + 0x1a], 0
lea eax, [ebp - 0x459]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], 0x400
lea eax, [ebp - 0x85a]
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], 0x400
lea eax, [ebp - 0x20c9]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0x824
xor eax, eax
mov dword [ebx + 0x34], eax
xor eax, eax
mov dword [ebx + 0x38], eax
push ebx
push 0x80000000
push 0x80
push 0x459d04
call sub.wininet.dll_InternetCrackUrlA
push 0
push 0
push 0
push 0
push 0
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x14], eax
push 0
push 0
push 3
mov eax, dword [ebx + 0x24]
push eax
mov eax, dword [ebx + 0x1c]
push eax
mov ax, word [ebx + 0x18]
push eax
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x18], eax
push 0
push 0x8080cc00
push 0
push 0
push 0x459d88
push 0x459d94
push 0x459e00
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov esi, eax
push 0x459e10
push dword [ebp - 4]
push 0x459e20
push dword [ebp - 8]
push 0x459e34
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.0040422c
mov eax, dword [ebp - 0xc]
call fcn.0040416c
lea edx, [ebp - 0x10]
call fcn.00407e6c
mov eax, dword [ebp - 0x10]
call fcn.0040416c
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040436c
mov edx, eax
mov eax, 0x45c66a
pop ecx
call fcn.00406790
push 0x20000000
push 0x24b
push 0x45c454
push esi
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [ebp - 0xc]
call fcn.0040416c
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040436c
push eax
push 0
push 0
push esi
call sub.wininet.dll_HttpSendRequestA
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x120c9]
mov edx, 0x10000
call fcn.00406798
lea eax, [ebp - 0x1c]
push eax
push 0x10000
lea eax, [ebp + ebx - 0x120c9]
push eax
push esi
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0x1c], 0
je 0x459c16
add ebx, dword [ebp - 0x1c]
jmp 0x459bf4
mov dword [ebp - 0x1c], 0x2710
lea eax, [ebp - 0x120c9]
mov edx, 0x10000
call fcn.00406798
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x120c9]
push eax
push 0x459e40
push 0x459d04
call sub.wininet.dll_InternetGetCookieA
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x120c9]
call fcn.004040a4
mov eax, dword [edi + 0x314]
mov eax, dword [eax + 0x220]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x120d0]
mov eax, dword [ebp - 0xc]
call fcn.004598dc
mov edx, dword [ebp - 0x120d0]
lea eax, [ebp - 0xc]
call fcn.00403f44
lea ecx, [ebp - 0x120d4]
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.0045a06c
mov edx, dword [ebp - 0x120d4]
lea eax, [ebp - 0xc]
call fcn.00403f44
push esi
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.00403f00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459cf8
lea eax, [ebp - 0x120d4]
mov edx, 2
call fcn.00403ed0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403ed0
ret