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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
push 0x401
push str.inet.cpp
mov eax, dword [ebp - 0x18]
push eax
call fcn.004b69d0
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0047f716
test eax, eax
jne 0x51b7e3
push 0x402
push str.inet.cpp
call fcn.00505a50
test eax, eax
je 0x51b7e3
int3
xor eax, eax
test eax, eax
jne 0x51b7bc
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x14], 0
jne 0x51b806
push 0x403
push str.inet.cpp
call fcn.00505a50
test eax, eax
je 0x51b806
int3
xor edx, edx
test edx, edx
jne 0x51b7e9
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x18], 0
jne 0x51b829
push 0x404
push str.inet.cpp
call fcn.00505a50
test eax, eax
je 0x51b829
int3
xor ecx, ecx
test ecx, ecx
jne 0x51b80c
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x18], 0
je 0x51b841
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], 0
jne 0x51b84f
push 6
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.005201e3
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x3c], 0
jne 0x51b88b
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x51b883
push 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.005201e3
mov eax, dword [ebp - 8]
jmp 0x51ba5b
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 0x34]
jb 0x51b936
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov ecx, dword [edx + 0x40]
sub ecx, dword [eax + 0x38]
test ecx, ecx
jge 0x51b8b9
mov dword [ebp - 0x1c], 0
jmp 0x51b8c8
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov ecx, dword [edx + 0x40]
sub ecx, dword [eax + 0x38]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 0x18]
add edx, dword [eax + 0x38]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00440ab0
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x34]
mov dword [edx + 0x38], ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x51b928
push 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.005201e3
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x51ba58
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x38]
add edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
cmp edx, dword [eax + 0x40]
jb 0x51ba26
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x40]
sub eax, dword [edx + 0x38]
test eax, eax
jge 0x51b964
mov dword [ebp - 0x20], 0
jmp 0x51b973
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x40]
sub eax, dword [edx + 0x38]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0x18]
add ecx, dword [edx + 0x38]
push ecx
mov eax, dword [ebp - 4]
push eax
call fcn.00440ab0
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x51b9c7
push 0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x1c]
push eax
call fcn.005201e3
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x40], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx + 0x40]
jae 0x51b9e9
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], edx
jmp 0x51b9f2
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
push eax
call fcn.00440ab0
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x38], edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x51ba58
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx + 0x38]
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.00440ab0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x38]
add ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x38], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8