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

Disassembly:
push 0x134
mov eax, 0x5d23ca
call fcn.00506dfb
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, ebx
push ebx
push ebx
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 0x18]
push ebx
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 0x1c]
push eax
push ebx
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x124], edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x128], eax
test eax, eax
jne 0x4939c2
cmp dword [ebp + 0x14], ebx
je 0x493c49
push 0x10
push 0x6011fc
push esi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x493c49
push 4
lea ecx, [ebp + 0x10]
push ecx
push 2
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push ebx
push ebx
push ebx
push esi
push dword [ebp - 0x128]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
jne 0x493a33
cmp dword [ebp + 0x14], ebx
je 0x493c3d
push 0x13
pop ecx
push 0xb4
lea eax, [ebp - 0xc4]
mov esi, 0x601258
lea edi, [ebp - 0x110]
push ebx
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0056b050
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x10
push eax
push dword [ebp - 0x118]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, ebx
jmp 0x493c3d
push ebx
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], ebx
push eax
push ebx
push 0xb
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x493aa1
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x493aa1
add eax, 2
push eax
call fcn.0059b115
mov edi, eax
mov eax, dword [ebp - 0x120]
add eax, 2
push eax
push ebx
push edi
call fcn.0056b050
add esp, 0x10
lea eax, [ebp - 0x120]
push ebx
push eax
push edi
push 0xb
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test edi, edi
je 0x493aa1
mov ecx, dword [ebp - 0x114]
push edi
call fcn.0041421f
push edi
call fcn.00576006
pop ecx
mov edi, ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x12c], ebx
push 0x401
mov dword [ebp - 4], ebx
call fcn.00506f2d
mov dword [esp], 0x401
push ebx
push eax
mov dword [ebp - 0x118], eax
call fcn.0056b050
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push 0x400
push dword [ebp - 0x118]
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x493b7f
mov edi, dword [ebp - 0x118]
mov dword [ebp - 0x138], eax
lea ecx, [ebp - 0x134]
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x13c], edi
push eax
call fcn.004ff687
mov eax, dword [ebp - 0x114]
add eax, dword [ebp - 0x11c]
push 0x401
mov dword [ebp - 0x114], eax
call fcn.00506f2d
mov dword [esp], 0x401
mov edi, eax
push ebx
push edi
call fcn.0056b050
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push 0x400
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x11c]
test eax, eax
jne 0x493b0e
mov edi, dword [ebp - 0x130]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x114]
test eax, eax
jle 0x493c2c
lea esi, [eax + 1]
push esi
mov dword [ebp - 0x138], esi
call fcn.00506f2d
push esi
push ebx
push eax
mov dword [ebp - 0x124], eax
call fcn.0056b050
mov eax, dword [ebp - 0x134]
add esp, 0x10
sub edi, eax
sar edi, 3
test edi, edi
je 0x493c1a
mov dword [ebp - 0x118], eax
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov eax, dword [ebp - 0x124]
push esi
push ecx
add eax, ebx
mov dword [ebp - 0x114], ecx
push eax
call fcn.0056a550
mov eax, dword [ebp - 0x114]
add esp, 0xc
add ebx, esi
test eax, eax
je 0x493bfa
push eax
call fcn.00506f36
pop ecx
mov eax, dword [ebp - 0x118]
add eax, 8
mov dword [ebp - 0x118], eax
sub edi, 1
jne 0x493bc9
mov eax, dword [ebp - 0x134]
mov esi, dword [ebp - 0x138]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x140]
test eax, eax
je 0x493c2c
mov dword [eax], esi
lea ecx, [ebp - 0x134]
call fcn.004f3d95
mov edi, dword [ebp - 0x124]
push dword [ebp - 0x128]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
call fcn.00506da5
ret