Function at 0x4792b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b151b
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push esi
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x2e0]
mov dword fs:[0], eax
mov edx, dword [0x62e978]
mov ebx, dword [ebp + 8]
or edi, 0xffffffff
push edi
lea eax, [esp + 0x24]
xor ecx, ecx
push edx
lea esi, [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], eax
mov word [esp + 0x28], cx
call fcn.00444050
mov dword [esp + 0x2e8], 0
mov eax, dword [0x62ea00]
cmp word [eax], 0
jne 0x479407
test ebx, ebx
je 0x479341
push ebx
mov eax, esi
push eax
call fcn.00443f10
mov ecx, dword [esp + 0x1c]
push 0
push 0x80
push 3
push 0
push 1
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, edi
jne 0x479389
mov dword [esp + 0x2e8], edi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
je 0x47951d
push eax
call fcn.0058622f
add esp, 4
jmp 0x47951d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x4793bd
mov dword [esp + 0x2e8], edi
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x47951d
push eax
call fcn.0058622f
add esp, 4
jmp 0x47951d
push esi
mov dword [esp + 0x1c], 0
call fcn.005759c5
add esp, 4
push 0
lea edx, [esp + 0x1c]
push edx
push esi
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], esi
je 0x4794f9
push edi
call fcn.005759d0
add esp, 4
mov dword [esp + 0x2e8], 0xffffffff
jmp 0x47939f
push eax
lea edx, [esp + 0x20]
push edx
call fcn.00443f10
cmp byte [0x62e5e7], 0
je 0x479423
mov ebx, dword [0x63573c]
jmp 0x479436
mov eax, dword [esp + 0x1c]
push 2
push 0
push eax
call fcn.0045c430
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x479398
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xa4]
push edx
push ebx
lea edx, [esp + 0x20]
call fcn.0045c4a0
add esp, 8
test eax, eax
jne 0x479398
mov esi, dword [esp + 0x2d0]
test esi, esi
jne 0x479480
mov dword [esp + 0x2e8], edi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
jmp 0x4793a9
push esi
call fcn.005759c5
add esp, 4
cmp dword [ebx], 1
mov edi, eax
je 0x47949c
mov dword [0x635778], 0x80000
jmp 0x4794bc
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 4]
push esi
push edi
push ecx
push eax
call fcn.0045c340
mov dword [0x635778], eax
test eax, eax
je 0x4794e7
cmp eax, 0x600
je 0x4794e7
push edi
call fcn.005759d0
add esp, 4
cmp byte [0x62e5e7], 0
jne 0x4794d7
push ebx
call fcn.0045c630
add esp, 4
mov dword [esp + 0x2e8], 0xffffffff
jmp 0x47936b
cmp byte [0x62e5e7], 0
jne 0x4794f9
push ebx
call fcn.0045c630
add esp, 4
mov dword [esp + 0x2e8], 0xffffffff
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x479519
push eax
call fcn.0058622f
add esp, 4
test edi, edi
jne 0x479595
mov edx, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 1
push connect
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x479591
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x479591
push esi
mov dword [esp + 0x18], 0
call fcn.005759c5
add esp, 4
push 0
mov edi, eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], esi
je 0x47958d
push edi
call fcn.005759d0
add esp, 4
xor eax, eax
jmp 0x4795aa
test edi, edi
jne 0x479595
xor eax, eax
jmp 0x4795aa
push edi
mov eax, esi
call fcn.004795d0
push edi
mov esi, eax
call fcn.005759d0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.005832f8
mov esp, ebp
pop ebp
ret 4