Function at 0x4ca1af
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 0x4c9a2d
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 0x4ca3cb
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.004c9534
mov eax, dword [ebp - 0x1010]
mov edx, dword [eax + 8]
mov eax, 0x4ca3e8
call fcn.00405294
mov esi, eax
test esi, esi
jne 0x4c9ae4
lea eax, [ebp - 0x1024]
mov edx, dword [ebp - 0x1010]
mov edx, dword [edx + 8]
call fcn.00404d28
jmp 0x4c9b1e
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 0x4c9b4b
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 0x4c9b5d
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 0x4ca381
push 0x4c96f0
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetStatusCallback
mov eax, dword [ebp - 0x1010]
cmp dword [eax + 0x2c], 0
je 0x4c9bf4
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 0x4c9c50
push ebp
call fcn.004c9984
pop ecx
jmp 0x4ca381
mov bl, 1
cmp byte [ebp + 0xc], 0
je 0x4c9c5f
mov edi, 0x4ca3ec
jmp 0x4c9c64
mov edi, 0x4ca3f0
xor esi, esi
mov eax, dword [ebp - 0x1010]
cmp byte [eax + 0xe], 0
jne 0x4c9c77
mov esi, 0x80000000
mov eax, dword [ebp - 0x1010]
cmp byte [eax + 0x30], 0
jne 0x4c9c89
or esi, 0x80000
push 2
lea eax, [ebp - 0x101c]
mov ecx, 1
mov edx, dword [0x4c9964]
call fcn.00406048
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 0x4c9d40
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 0x4ca3f8
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 0x4c9d1c
push ebp
call fcn.004c9984
pop ecx
jmp 0x4ca381
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1010]
call fcn.004c9714
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpSendRequestA
jmp 0x4c9dd6
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 0x4ca3f8
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 0x4c9d8e
push ebp
call fcn.004c9984
pop ecx
jmp 0x4ca381
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1010]
call fcn.004c9714
push 0xa0000000
push 0x2f
push 0x4ca404
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.004c99c8
pop ecx
test al, al
jne 0x4c9df4
push ebp
call fcn.004c9984
pop ecx
jmp 0x4ca381
lea edx, [ebp - 0x1038]
lea eax, [ebp - 0x100c]
call fcn.0040a578
mov eax, dword [ebp - 0x1038]
xor edx, edx
call fcn.0040974c
cmp eax, 0xc8
je 0x4c9e2c
cmp eax, 0xce
je 0x4c9e2c
push ebp
call fcn.004c9984
pop ecx
jmp 0x4ca381
mov bl, 3
cmp byte [ebp + 8], 0
je 0x4c9e40
push ebp
call fcn.004c9984
pop ecx
jmp 0x4ca381
push ebp
mov eax, 0xb
call fcn.004c99c8
pop ecx
test al, al
je 0x4c9e64
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.004c99c8
pop ecx
test al, al
je 0x4c9fb0
lea eax, [ebp - 0x103c]
lea edx, [ebp - 0x100c]
call fcn.00404e88
mov eax, dword [ebp - 0x103c]
lea edx, [ebp - 0x1020]
call fcn.00409130
mov edx, dword [ebp - 0x1020]
mov eax, 0x4ca43c
call fcn.00405294
dec eax
jne 0x4c9f77
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, 0x4ca44c
call fcn.00405294
mov esi, eax
test esi, esi
jle 0x4c9f31
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.0040974c
mov edx, dword [ebp - 0x1010]
mov dword [edx + 0x48], eax
mov edx, dword [ebp - 0x1020]
mov eax, 0x4ca458
call fcn.00405294
mov esi, eax
test esi, esi
jle 0x4c9f77
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.0040974c
mov edx, dword [ebp - 0x1010]
mov dword [edx + 0x3c], eax
push ebp
mov eax, 5
call fcn.004c99c8
pop ecx
test al, al
je 0x4c9ff2
lea edx, [ebp - 0x1048]
lea eax, [ebp - 0x100c]
call fcn.0040a578
mov eax, dword [ebp - 0x1048]
xor edx, edx
call fcn.0040974c
mov edx, dword [ebp - 0x1010]
mov dword [edx + 0x44], eax
jmp 0x4c9ff2
push ebp
mov eax, 5
call fcn.004c99c8
pop ecx
test al, al
je 0x4c9ff2
lea edx, [ebp - 0x104c]
lea eax, [ebp - 0x100c]
call fcn.0040a578
mov eax, dword [ebp - 0x104c]
xor edx, edx
call fcn.0040974c
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.004c99c8
pop ecx
test al, al
je 0x4ca0ae
lea edx, [ebp - 0x1054]
lea eax, [ebp - 0x100c]
call fcn.0040a578
mov eax, dword [ebp - 0x1054]
lea edx, [ebp - 0x1050]
call fcn.00409130
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, 0x4ca464
call fcn.00405294
mov esi, eax
test esi, esi
je 0x4ca0ae
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, 0x4ca478
call fcn.00405294
mov esi, eax
test esi, esi
jle 0x4ca0ae
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 0x4ca292
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 0x4ca0de
cmp eax, dword [esp]
pop edx
pop eax
je 0x4ca0ee
push ebp
call fcn.004c9984
pop ecx
jmp 0x4ca381
mov eax, dword [ebp - 0x1010]
cmp dword [eax + 0x48], 0
jbe 0x4ca1af
mov dl, 1
mov eax, dword [0x4180a8]
call fcn.00403e34
mov dword [ebp - 0x1034], eax
xor eax, eax
push ebp
push 0x4ca1a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1010]
mov eax, dword [eax + 0x60]
call fcn.00409c38
test al, al
je 0x4ca144
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 0x4ca17e
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.00409224
test al, al
jne 0x4ca18f
push ebp
call fcn.004c9984
pop ecx
call fcn.004046b0
jmp 0x4ca381
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca1af
mov eax, dword [ebp - 0x1034]
call fcn.00403e64
ret
mov eax, dword [ebp - 0x1010]
cmp dword [eax + 0x48], 0
jne 0x4ca292
mov dl, 1
mov eax, dword [0x4180a8]
call fcn.00403e34
mov dword [ebp - 0x1034], eax
xor eax, eax
push ebp
push 0x4ca28b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1010]
mov eax, dword [eax + 0x60]
call fcn.00409c38
test al, al
je 0x4ca205
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 0x4ca23f
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.00409224
test al, al
jne 0x4ca272
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 0x4ca292
mov eax, dword [ebp - 0x1034]
call fcn.00403e64
ret
mov eax, dword [ebp - 0x1010]
cmp word [eax + 0x6a], 0
je 0x4ca2cc
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 0x4ca36b
cmp dword [ebp - 0x1030], 0
je 0x4ca36b
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 0x4ca35e
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 0x4ca2d3
cmp byte [ebp - 0x1029], 0
je 0x4ca378
mov bl, 4
jmp 0x4ca37a
mov bl, 5
push ebp
call fcn.004c9984
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca3d2
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 [0x4c9964]
call fcn.00406054
lea eax, [ebp - 0x1014]
call fcn.00404c90
ret