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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x20b
push 0
push 0
dec ecx
jne 0x4c9bc5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x1018], ecx
mov dword [ebp - 0x1014], edx
mov dword [ebp - 0x1010], eax
mov eax, dword [ebp - 0x1014]
call fcn.00405140
xor eax, eax
push ebp
push 0x4ca563
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 0x1010]
add eax, 0x38
call fcn.00404c90
mov eax, dword [ebp - 0x1010]
xor edx, edx
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 0x1010]
add eax, 0x34
call fcn.00404c90
mov eax, dword [ebp - 0x1010]
add eax, 0xc
push eax
mov eax, dword [ebp - 0x1010]
lea ecx, [eax + 8]
mov eax, dword [ebp - 0x1010]
lea edx, [eax + 4]
mov eax, dword [ebp - 0x1014]
call fcn.004c96cc
mov eax, dword [ebp - 0x1010]
mov edx, dword [eax + 8]
mov eax, 0x4ca580
call fcn.00405294
mov esi, eax
test esi, esi
jne 0x4c9c7c
lea eax, [ebp - 0x1024]
mov edx, dword [ebp - 0x1010]
mov edx, dword [edx + 8]
call fcn.00404d28
jmp 0x4c9cb6
lea eax, [ebp - 0x1024]
push eax
mov ecx, esi
dec ecx
mov eax, dword [ebp - 0x1010]
mov eax, dword [eax + 8]
mov edx, 1
call fcn.004051b0
lea eax, [ebp - 0x1028]
push eax
lea edx, [esi + 1]
mov eax, dword [ebp - 0x1010]
mov eax, dword [eax + 8]
mov ecx, 0x7fffffff
call fcn.004051b0
mov eax, dword [ebp - 0x1010]
cmp dword [eax + 0x1c], 0
je 0x4c9ce3
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x1010]
mov eax, dword [eax + 0x1c]
call fcn.00405150
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
jmp 0x4c9cf5
push 0
push 0
push 0
push 0
push 0
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4ca519
push 0x4c9888
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetStatusCallback
mov eax, dword [ebp - 0x1010]
cmp dword [eax + 0x2c], 0
je 0x4c9d8c
push 4
mov eax, dword [ebp - 0x1010]
add eax, 0x2c
push eax
push 2
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
mov eax, dword [ebp - 0x1010]
add eax, 0x2c
push eax
push 6
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
mov eax, dword [ebp - 0x1010]
add eax, 0x2c
push eax
push 8
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
mov eax, dword [ebp - 0x1010]
add eax, 0x2c
push eax
push 5
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
mov eax, dword [ebp - 0x1010]
add eax, 0x2c
push eax
push 7
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 3
mov eax, dword [ebp - 0x1010]
mov eax, dword [eax + 0x14]
call fcn.00405150
push eax
mov eax, dword [ebp - 0x1010]
mov eax, dword [eax + 0x10]
call fcn.00405150
push eax
mov eax, dword [ebp - 0x1010]
mov ax, word [eax + 0xc]
push eax
mov eax, dword [ebp - 0x1010]
mov eax, dword [eax + 4]
call fcn.00405150
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4c9de8
push ebp
call fcn.004c9b1c
pop ecx
jmp 0x4ca519
mov bl, 1
cmp byte [ebp + 0xc], 0
je 0x4c9df7
mov edi, 0x4ca584
jmp 0x4c9dfc
mov edi, 0x4ca588
xor esi, esi
mov eax, dword [ebp - 0x1010]
cmp byte [eax + 0xe], 0
jne 0x4c9e0f
mov esi, 0x80000000
mov eax, dword [ebp - 0x1010]
cmp byte [eax + 0x30], 0
jne 0x4c9e21
or esi, 0x80000
push 2
lea eax, [ebp - 0x101c]
mov ecx, 1
mov edx, dword [0x4c9afc]
call fcn.00406130
add esp, 4
mov eax, dword [ebp - 0x1010]
mov eax, dword [eax + 0x18]
call fcn.00405150
mov edx, dword [ebp - 0x101c]
mov dword [edx], eax
mov eax, dword [ebp - 0x101c]
xor edx, edx
mov dword [eax + 4], edx
cmp byte [ebp + 0xc], 0
je 0x4c9ed8
mov eax, dword [ebp - 0x1010]
push eax
push esi
mov eax, dword [ebp - 0x101c]
push eax
mov eax, dword [ebp - 0x1010]
mov eax, dword [eax + 0x20]
call fcn.00405150
push eax
push 0x4ca590
mov eax, dword [ebp - 0x1010]
mov eax, dword [eax + 8]
call fcn.00405150
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4c9eb4
push ebp
call fcn.004c9b1c
pop ecx
jmp 0x4ca519
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1010]
call fcn.004c98ac
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpSendRequestA
jmp 0x4c9f6e
mov eax, dword [ebp - 0x1010]
push eax
push esi
mov eax, dword [ebp - 0x101c]
push eax
mov eax, dword [ebp - 0x1010]
mov eax, dword [eax + 0x20]
call fcn.00405150
push eax
push 0x4ca590
mov eax, dword [ebp - 0x1024]
call fcn.00405150
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4c9f26
push ebp
call fcn.004c9b1c
pop ecx
jmp 0x4ca519
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1010]
call fcn.004c98ac
push 0xa0000000
push 0x2f
push 0x4ca59c
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [ebp - 0x1028]
call fcn.00404f50
push eax
mov eax, dword [ebp - 0x1028]
call fcn.00405150
push eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpSendRequestA
mov bl, 2
push ebp
mov eax, 0x13
call fcn.004c9b60
pop ecx
test al, al
jne 0x4c9f8c
push ebp
call fcn.004c9b1c
pop ecx
jmp 0x4ca519
lea edx, [ebp - 0x1038]
lea eax, [ebp - 0x100c]
call fcn.0040a660
mov eax, dword [ebp - 0x1038]
xor edx, edx
call fcn.00409834
cmp eax, 0xc8
je 0x4c9fc4
cmp eax, 0xce
je 0x4c9fc4
push ebp
call fcn.004c9b1c
pop ecx
jmp 0x4ca519
mov bl, 3
cmp byte [ebp + 8], 0
je 0x4c9fd8
push ebp
call fcn.004c9b1c
pop ecx
jmp 0x4ca519
push ebp
mov eax, 0xb
call fcn.004c9b60
pop ecx
test al, al
je 0x4c9ffc
mov eax, dword [ebp - 0x1010]
add eax, 0x40
lea edx, [ebp - 0x100c]
call fcn.00404e88
mov eax, dword [ebp - 0x1010]
xor edx, edx
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 0x1010]
xor edx, edx
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 0x1010]
xor edx, edx
mov dword [eax + 0x48], edx
push ebp
mov eax, 0x35
call fcn.004c9b60
pop ecx
test al, al
je 0x4ca148
lea eax, [ebp - 0x103c]
lea edx, [ebp - 0x100c]
call fcn.00404e88
mov eax, dword [ebp - 0x103c]
lea edx, [ebp - 0x1020]
call fcn.00409218
mov edx, dword [ebp - 0x1020]
mov eax, 0x4ca5d4
call fcn.00405294
dec eax
jne 0x4ca10f
lea eax, [ebp - 0x1020]
push eax
mov ecx, 0x7fffffff
mov edx, 7
mov eax, dword [ebp - 0x1020]
call fcn.004051b0
mov edx, dword [ebp - 0x1020]
mov eax, 0x4ca5e4
call fcn.00405294
mov esi, eax
test esi, esi
jle 0x4ca0c9
lea eax, [ebp - 0x1040]
push eax
mov ecx, esi
dec ecx
xor edx, edx
mov eax, dword [ebp - 0x1020]
call fcn.004051b0
mov eax, dword [ebp - 0x1040]
xor edx, edx
call fcn.00409834
mov edx, dword [ebp - 0x1010]
mov dword [edx + 0x48], eax
mov edx, dword [ebp - 0x1020]
mov eax, 0x4ca5f0
call fcn.00405294
mov esi, eax
test esi, esi
jle 0x4ca10f
lea eax, [ebp - 0x1044]
push eax
lea edx, [esi + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 0x1020]
call fcn.004051b0
mov eax, dword [ebp - 0x1044]
xor edx, edx
call fcn.00409834
mov edx, dword [ebp - 0x1010]
mov dword [edx + 0x3c], eax
push ebp
mov eax, 5
call fcn.004c9b60
pop ecx
test al, al
je 0x4ca18a
lea edx, [ebp - 0x1048]
lea eax, [ebp - 0x100c]
call fcn.0040a660
mov eax, dword [ebp - 0x1048]
xor edx, edx
call fcn.00409834
mov edx, dword [ebp - 0x1010]
mov dword [edx + 0x44], eax
jmp 0x4ca18a
push ebp
mov eax, 5
call fcn.004c9b60
pop ecx
test al, al
je 0x4ca18a
lea edx, [ebp - 0x104c]
lea eax, [ebp - 0x100c]
call fcn.0040a660
mov eax, dword [ebp - 0x104c]
xor edx, edx
call fcn.00409834
mov esi, eax
mov eax, dword [ebp - 0x1010]
mov dword [eax + 0x3c], esi
mov eax, dword [ebp - 0x1010]
mov dword [eax + 0x44], esi
push ebp
mov eax, 1
call fcn.004c9b60
pop ecx
test al, al
je 0x4ca246
lea edx, [ebp - 0x1054]
lea eax, [ebp - 0x100c]
call fcn.0040a660
mov eax, dword [ebp - 0x1054]
lea edx, [ebp - 0x1050]
call fcn.00409218
mov edx, dword [ebp - 0x1050]
mov eax, dword [ebp - 0x1010]
add eax, 0x38
call fcn.00404ce4
mov eax, dword [ebp - 0x1010]
mov edx, dword [eax + 0x38]
mov eax, 0x4ca5fc
call fcn.00405294
mov esi, eax
test esi, esi
je 0x4ca246
mov eax, dword [ebp - 0x1010]
add eax, 0x38
push eax
lea edx, [esi + 8]
mov eax, dword [ebp - 0x1010]
mov eax, dword [eax + 0x38]
mov ecx, 0x7fffffff
call fcn.004051b0
mov eax, dword [ebp - 0x1010]
mov edx, dword [eax + 0x38]
mov eax, 0x4ca610
call fcn.00405294
mov esi, eax
test esi, esi
jle 0x4ca246
mov eax, dword [ebp - 0x1010]
add eax, 0x38
push eax
mov ecx, esi
dec ecx
mov eax, dword [ebp - 0x1010]
mov eax, dword [eax + 0x38]
mov edx, 1
call fcn.004051b0
mov eax, dword [ebp - 0x1010]
cmp byte [eax + 0x54], 0
je 0x4ca42a
mov eax, dword [ebp - 0x1018]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0x1010]
mov eax, dword [eax + 0x48]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4ca276
cmp eax, dword [esp]
pop edx
pop eax
je 0x4ca286
push ebp
call fcn.004c9b1c
pop ecx
jmp 0x4ca519
mov eax, dword [ebp - 0x1010]
cmp dword [eax + 0x48], 0
jbe 0x4ca347
mov dl, 1
mov eax, dword [0x418190]
call fcn.00403e34
mov dword [ebp - 0x1034], eax
xor eax, eax
push ebp
push 0x4ca340
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1010]
mov eax, dword [eax + 0x60]
call fcn.00409d20
test al, al
je 0x4ca2dc
mov eax, dword [ebp - 0x1010]
mov edx, dword [eax + 0x60]
mov eax, dword [ebp - 0x1034]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x1034]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x4ca316
lea ecx, [ebp - 0x1058]
xor edx, edx
mov eax, dword [ebp - 0x1034]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x1058]
mov edx, dword [ebp - 0x1010]
mov edx, dword [edx + 0x40]
call fcn.0040930c
test al, al
jne 0x4ca327
push ebp
call fcn.004c9b1c
pop ecx
call fcn.004046b0
jmp 0x4ca519
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca347
mov eax, dword [ebp - 0x1034]
call fcn.00403e64
ret
mov eax, dword [ebp - 0x1010]
cmp dword [eax + 0x48], 0
jne 0x4ca42a
mov dl, 1
mov eax, dword [0x418190]
call fcn.00403e34
mov dword [ebp - 0x1034], eax
xor eax, eax
push ebp
push 0x4ca423
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1010]
mov eax, dword [eax + 0x60]
call fcn.00409d20
test al, al
je 0x4ca39d
mov eax, dword [ebp - 0x1010]
mov edx, dword [eax + 0x60]
mov eax, dword [ebp - 0x1034]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x1034]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x4ca3d7
lea ecx, [ebp - 0x105c]
xor edx, edx
mov eax, dword [ebp - 0x1034]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x105c]
mov edx, dword [ebp - 0x1010]
mov edx, dword [edx + 0x40]
call fcn.0040930c
test al, al
jne 0x4ca40a
mov eax, dword [ebp - 0x1034]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x1010]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 0x1034]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x1010]
mov edx, dword [eax + 0x60]
mov eax, dword [ebp - 0x1034]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca42a
mov eax, dword [ebp - 0x1034]
call fcn.00403e64
ret
mov eax, dword [ebp - 0x1010]
cmp word [eax + 0x6a], 0
je 0x4ca464
mov eax, dword [ebp - 0x1018]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 0x1010]
mov eax, dword [eax + 0x3c]
push eax
mov ebx, dword [ebp - 0x1010]
mov ecx, dword [ebp - 0x1014]
mov edx, dword [ebp - 0x1010]
mov eax, dword [ebx + 0x6c]
call dword [ebx + 0x68]
mov byte [ebp - 0x1029], 0
mov dword [ebp - 0x1030], 0x1000
lea eax, [ebp - 0x1030]
push eax
push 0x1000
lea eax, [ebp - 0x100c]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x4ca503
cmp dword [ebp - 0x1030], 0
je 0x4ca503
lea edx, [ebp - 0x100c]
mov ecx, dword [ebp - 0x1030]
mov eax, dword [ebp - 0x1018]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x1010]
cmp word [eax + 0x72], 0
je 0x4ca4f6
mov eax, dword [ebp - 0x1018]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 0x1010]
mov eax, dword [eax + 0x3c]
push eax
lea eax, [ebp - 0x1029]
push eax
mov ebx, dword [ebp - 0x1010]
mov ecx, dword [ebp - 0x1014]
mov edx, dword [ebp - 0x1010]
mov eax, dword [ebx + 0x74]
call dword [ebx + 0x70]
cmp byte [ebp - 0x1029], 0
je 0x4ca46b
cmp byte [ebp - 0x1029], 0
je 0x4ca510
mov bl, 4
jmp 0x4ca512
mov bl, 5
push ebp
call fcn.004c9b1c
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca56a
lea eax, [ebp - 0x105c]
mov edx, 0xa
call fcn.00404cb4
lea eax, [ebp - 0x1028]
mov edx, 3
call fcn.00404cb4
lea eax, [ebp - 0x101c]
mov edx, dword [0x4c9afc]
call fcn.0040613c
lea eax, [ebp - 0x1014]
call fcn.00404c90
ret