Function at 0x48e090
Capabilities:
Check if file exists
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df4f5
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x50b0c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, ecx
mov dword [ebp - 0x64], eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x60], ecx
test eax, eax
je 0x48e317
test ebx, ebx
je 0x48e317
test esi, esi
je 0x48e317
push 0x4e3e9e
push 0x100
call fcn.004a6a9f
xor edi, edi
mov dword [ebp - 0x70], vtable.CxAutoArray_unsigned_char_.0
add esp, 8
mov dword [ebp - 0x6c], edi
test eax, eax
je 0x48e114
mov edi, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], edi
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x48e13a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
jmp 0x48e14e
xorps xmm0, xmm0
movlpd qword [ebp - 0x54], xmm0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x44], eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00409d80
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00485950
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48e185
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x4c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48e19a
lea ecx, [ebp - 0x4c]
call fcn.00485870
xor esi, esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
push esi
push 0x80
push 4
push esi
push 2
push 0x40000000
push dword [ebp - 0x58]
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x48e208
call fcn.0048ea40
test eax, eax
jns 0x48e20d
xor edi, edi
test esi, esi
je 0x48e1da
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x48e1f9
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x70]
call fcn.004342a0
mov eax, edi
jmp 0x48e319
mov esi, eax
mov dword [ebp - 0x78], esi
push 2
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
push eax
push 0
push esi
movlpd qword [ebp - 0x54], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x48e22e
call fcn.0048ea40
mov ecx, ebx
call fcn.00493290
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x5c], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
mov eax, dword [ebx + 0x10]
push 0x100
push edi
mov dword [ebp - 0x40], 0
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x48e1cd
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x48e30d
push 0
lea ecx, [ebp - 0x40]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48e297
call fcn.0048ea40
test eax, eax
js 0x48e1cd
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x40], eax
jne 0x48e1cd
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
add ecx, eax
push eax
adc edx, 0
mov dword [ebp - 0x44], ecx
push edx
push ecx
push dword [ebp - 0x5c]
mov dword [ebp - 0x48], edx
push dword [ebp - 0x50]
push dword [ebp - 0x58]
push dword [ebp - 0x60]
push ebx
push dword [ebp - 0x64]
call fcn.00494e70
add esp, 0x24
test eax, eax
je 0x48e1cd
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
mov eax, dword [ebx + 0x10]
push 0x100
push edi
mov dword [ebp - 0x40], 0
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x48e1cd
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x48e277
mov edi, 1
jmp 0x48e1cf
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a69a0
mov esp, ebp
pop ebp
ret