Function at 0x4596e4
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa98
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x568], edx
mov dword [ebp - 4], eax
lea esi, [ebp - 8]
xor eax, eax
push ebp
push 0x4599ec
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
je 0x459723
mov eax, dword [ebp - 4]
mov byte [eax + 0x70], 0
jmp 0x4599d3
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
je 0x45974a
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.004049c0
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
jmp 0x45975c
push 0
push 0
push 0
push 0
push 0
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4599cc
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
je 0x45978d
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
mov byte [eax + 0x70], 0
call fcn.00403f64
jmp 0x4599d3
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
call fcn.004049c0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4597bc
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
je 0x4597d6
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
mov byte [eax + 0x70], 1
call fcn.00403f64
jmp 0x4599d3
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0x400
mov eax, dword [ebp - 0x14]
call fcn.0040270c
mov edi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push 5
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x459822
lea edx, [ebp - 0x568]
mov eax, edi
call fcn.00408cec
mov eax, dword [ebp - 0x568]
call fcn.00408560
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov eax, edi
call fcn.0040272c
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x5c], edx
xor edx, edx
push ebp
push 0x4599ae
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x44]
lea eax, [ebp - 0x564]
call fcn.00402d5c
mov edx, 1
lea eax, [ebp - 0x564]
call fcn.0040315c
call fcn.00402874
mov eax, dword [ebp - 4]
cmp byte [eax + 0x41], 0
jne 0x45992a
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
jne 0x45992a
push esi
push 0x400
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetReadFile
xor eax, eax
push ebp
push 0x4598fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x41], 0
jne 0x4598b5
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
je 0x4598bf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45992a
push 0
lea edx, [ebp - 0x418]
mov ecx, dword [esi]
lea eax, [ebp - 0x564]
call fcn.00402eac
call fcn.00402874
mov eax, dword [ebp - 4]
mov edx, dword [esi]
add dword [eax + 0x5c], edx
mov eax, dword [ebp - 4]
push eax
push 0x4599fc
mov eax, dword [ebp - 4]
call fcn.0041a224
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45990f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x41], 0
jne 0x45992a
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
jne 0x45992a
cmp dword [esi], 0
jne 0x459865
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, dword [ebp - 4]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp - 4]
push eax
push 0x4599fc
mov eax, dword [ebp - 4]
call fcn.0041a224
lea eax, [ebp - 0x564]
call fcn.00402ecc
call fcn.00402874
test bl, bl
jne 0x45996d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x41], 0
jne 0x45996d
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
je 0x459971
xor eax, eax
jmp 0x459973
mov al, 1
test al, al
jne 0x459989
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
jne 0x459989
mov eax, dword [ebp - 4]
mov byte [eax + 0x70], 2
jmp 0x459990
mov eax, dword [ebp - 4]
mov byte [eax + 0x70], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4599b5
mov eax, dword [ebp - 4]
mov byte [eax + 0x70], 2
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4599f3
lea eax, [ebp - 0x568]
call fcn.00404500
ret