Function at 0x4a61dc
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4a61e5
mov eax, dword [ebp - 4]
add esp, 0xffffffbc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2048], ebx
mov dword [ebp - 0x2044], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004042a8
xor eax, eax
push ebp
push 0x4a6544
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
cmp dword [esi + 0x14], 0
je 0x4a64fc
mov ebx, 0xc0000000
xor eax, eax
mov dword [ebp - 0xc], eax
cmp byte [esi + 0x34], 0
jne 0x4a62fe
push 0
push ebx
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004042b8
push eax
mov eax, dword [esi + 0x14]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4a627c
mov eax, esi
call fcn.004a6e6c
jmp 0x4a63d2
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0xa
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x203e]
push eax
push 0x13
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpQueryInfoA
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x203e]
mov ecx, 0x15
call fcn.004040a4
mov eax, dword [ebp - 0x20]
mov edx, 0x4a655c
call fcn.00404204
je 0x4a62d3
mov eax, dword [ebp - 0x20]
mov edx, 0x4a6568
call fcn.00404204
jne 0x4a62e0
lea eax, [esi + 4]
call fcn.00403e74
jmp 0x4a63d2
lea eax, [esi + 4]
mov ecx, 0x4a6574
mov edx, dword [ebp - 0x20]
call fcn.00404140
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x4a6509
lea eax, [esi + 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x15]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004a60ac
test al, al
jne 0x4a63ca
cmp byte [ebp - 0x15], 0
je 0x4a6509
cmp byte [esi + 0x35], 0
je 0x4a6509
cmp dword [esi + 0x38], 0
je 0x4a6509
push 0x10
push 0x4a6588
push dword [esi + 4]
push 0x4a6598
push 0x4a65a4
lea eax, [ebp - 0x2044]
mov edx, 3
call fcn.004041b4
mov eax, dword [ebp - 0x2044]
call fcn.004042b8
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 0x350]
test eax, eax
je 0x4a6397
push 0
push eax
call sub.wininet.dll_InternetHangUp
mov eax, dword [esi + 0x38]
xor edx, edx
mov dword [eax + 0x350], edx
push 0
mov eax, dword [esi + 0x38]
add eax, 0x350
push eax
push 1
push 0x4a65c0
push 0
call sub.wininet.dll_InternetDial
test eax, eax
je 0x4a62fe
lea eax, [esi + 4]
mov edx, 0x4a65cc
call fcn.00403ec8
jmp 0x4a6509
lea eax, [esi + 4]
call fcn.00403e74
cmp dword [ebp - 0xc], 0
je 0x4a6509
xor eax, eax
push ebp
push 0x4a64f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
lea eax, [ebp - 0x2029]
xor ecx, ecx
mov edx, 0x2001
call fcn.00402ca0
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x2000
lea eax, [ebp - 0x2029]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x4a64d7
cmp dword [ebp - 0x10], 0
jne 0x4a643c
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.004a5e04
mov byte [ebp - 6], al
jmp 0x4a64de
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x2029], 0
test bl, bl
je 0x4a6483
cmp byte [ebp - 5], 0
je 0x4a6483
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x2029]
call fcn.00409e34
lea ecx, [esi + 0x2c]
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.004a5a88
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
call fcn.004040fc
cmp dword [esi + 0x2c], 0
jle 0x4a64a2
sub dword [ebp - 0x10], 0x14
jmp 0x4a64a2
lea edx, [ebp - 0x2048]
lea eax, [ebp - 0x2029]
call fcn.00409e34
mov edx, dword [ebp - 0x2048]
lea eax, [ebp - 0x14]
call fcn.004040fc
xor ebx, ebx
cmp byte [ebp - 5], 0
je 0x4a63ec
mov eax, dword [ebp - 0x10]
add dword [esi + 0x28], eax
cmp word [esi + 0x22], 0
je 0x4a63ec
mov eax, dword [esi + 0x28]
push eax
mov eax, dword [esi + 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, esi
mov eax, dword [esi + 0x24]
call dword [esi + 0x20]
jmp 0x4a63ec
mov eax, esi
call fcn.004a6e6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6509
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
lea eax, [esi + 4]
mov edx, 0x4a65e8
call fcn.00403ec8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a654b
lea eax, [ebp - 0x2048]
mov edx, 2
call fcn.00403e98
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00403e98
lea eax, [ebp - 0x14]
call fcn.00403e74
lea eax, [ebp - 4]
call fcn.00403e74
ret