Function at 0x4626f0
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 0x4c4580
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4f6108]
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 - 0x68], eax
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x64], ecx
test eax, eax
je 0x462962
test ebx, ebx
je 0x462962
test edi, edi
je 0x462962
push 0x4fa14c
push 0x100
call fcn.0047ad42
xor esi, esi
mov dword [ebp - 0x80], vtable.CxAutoArray_unsigned_char_.0
add esp, 8
mov dword [ebp - 0x7c], esi
test eax, eax
je 0x462774
mov esi, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], esi
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x46279a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
jmp 0x4627ae
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 edi
lea ecx, [ebp - 0x3c]
call fcn.00404260
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.0045c940
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4627e5
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 0x4627fa
lea ecx, [ebp - 0x4c]
call fcn.0045c520
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
sub esp, 0x18
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
push edi
call fcn.00442b40
mov edi, dword [ebp - 0x54]
test eax, eax
js 0x462923
cmp edi, 0xffffffff
je 0x462923
push 2
lea eax, [ebp - 0x70]
xorps xmm0, xmm0
push eax
push 0
push edi
movlpd qword [ebp - 0x74], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x46284d
call fcn.00442a90
mov ecx, ebx
call fcn.0045e010
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x10]
lea eax, [ebp - 0x40]
push eax
push 0x100
push esi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x70], 0
push dword [ecx]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x462923
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x46295b
push 0
lea ecx, [ebp - 0x3c]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4628b9
call fcn.00442a90
test eax, eax
js 0x462923
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x3c], eax
jne 0x462923
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 - 0x58]
mov dword [ebp - 0x48], edx
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push ebx
push dword [ebp - 0x68]
call fcn.004638e0
add esp, 0x24
test eax, eax
je 0x462923
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0x40]
push ecx
push 0x100
push esi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x70], 0
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x462892
xor esi, esi
test edi, edi
je 0x462930
push edi
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 0x46294f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x80]
call fcn.0042bcb0
mov eax, esi
jmp 0x462964
mov esi, 1
jmp 0x462925
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.0047ac53
mov esp, ebp
pop ebp
ret