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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b247
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x5b0070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp + 0xc]
mov edx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xd8], ecx
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x4c39f2
mov edx, dword [ecx]
xor ecx, ecx
xorps xmm0, xmm0
mov word [edx], cx
push 0x5c
mov byte [eax], cl
lea eax, [ebp - 0xcc]
push ecx
push eax
movups xmmword [ebp - 0x20], xmm0
call fcn.00500e00
lea eax, [ebp - 0xcc]
push eax
call fcn.004fe4e0
push 4
mov dword [ebp - 0x68], 0
call fcn.004e563f
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 1
add esp, 0x10
lea ecx, [ebp - 0x68]
push 3
push 1
push 0x80000000
push esi
call fcn.0046cbe0
mov esi, dword [ebp - 0x68]
test al, al
je 0x4c3bc3
test esi, esi
je 0x4c3bc3
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4c3bc3
lea ecx, [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4c3aa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4c3bc3
mov eax, dword [ebp - 0x70]
xor ecx, ecx
add ecx, edi
adc eax, 0
or ecx, eax
je 0x4c3bc3
push 0x5b4b80
push 0x1000
mov dword [ebp - 0x6c], 0
call fcn.004e6073
mov edi, eax
add esp, 8
test edi, edi
je 0x4c3bc3
cmp dword [esi], 0xffffffff
je 0x4c3b40
push 0
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0
push eax
push 0x1000
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c3b28
mov eax, dword [ebp - 0xd4]
cmp byte [eax], 0
jne 0x4c3b28
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4c3b28
push eax
lea eax, [ebp - 0xcc]
push edi
push eax
call fcn.004fe540
add esp, 0xc
mov dword [ebp - 0x6c], 0
jmp 0x4c3ad8
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4c3b40
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4c3b40
mov dword [esi], 0xffffffff
push edi
call fcn.004e5d53
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004fe3c0
push 0x42
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.00500e00
add esp, 0x18
lea esi, [ebp - 0x64]
xor edi, edi
nop dword [eax + eax]
movzx eax, byte [ebp + edi - 0x20]
push eax
push str._02X
push 3
push esi
call fcn.00448810
inc edi
add esp, 0x10
add esi, 4
cmp edi, 0x10
jb 0x4c3b70
mov esi, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4c3ba0
sub edx, ecx
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0xd8]
sar edx, 1
push edx
push eax
call fcn.00403570
mov al, 1
jmp 0x4c3bc5
xor al, al
mov byte [ebp - 0xcd], al
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4c3c06
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4c3bee
test eax, eax
je 0x4c3bee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.004e566f
mov al, byte [ebp - 0xcd]
add esp, 8
mov dword [ebp - 0x68], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e562e
mov esp, ebp
pop ebp
ret 8