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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 8]
push eax
call fcn.00414040
add esp, 4
cmp eax, 1
jne 0x414c6e
xor eax, eax
jmp 0x415022
lea ecx, [ebp - 8]
push ecx
push 0x4806c0
call fcn.0040a5b0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x415020
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004140f0
add esp, 0xc
cmp eax, 1
jne 0x415016
push 0xfffe
push 0x40
call dword [0x48c0d4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x414ff6
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4346f0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [0x48c480]
xor edx, edx
mov word [eax], dx
mov dword [ebp - 0x18], 0xffffffff
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x414fec
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x414fdc
mov edx, dword [ebp - 0x1c]
push edx
push 0x40
call dword [0x48c0d4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x414fdc
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x1c]
jne 0x414fd2
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x1c]
shr eax, 5
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov ecx, 0x20
div ecx
mov dword [ebp - 0x2c], edx
mov edx, dword [0x482458]
mov dword [ebp - 0x38], edx
mov eax, dword [0x48245c]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x44], 0
jmp 0x414dc8
mov edx, dword [ebp - 0x44]
add edx, 1
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x40]
jge 0x414e0a
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push str._n_b
push 0
push 0x20
mov eax, dword [ebp - 0x28]
push eax
call fcn.0041a960
add esp, 0x18
mov ecx, dword [ebp - 0x28]
add ecx, 0x20
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x38]
add edx, 1
mov eax, dword [ebp - 0x34]
adc eax, 0
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
jmp 0x414dbf
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0041d5e0
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x414fd2
push 0x65
mov edx, dword [ebp - 0x3c]
push edx
call fcn.004152d0
add esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x414f9b
push 0x30010
push 0x40
call dword [0x48c0d4]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x414f9b
push 0x89b8
push 0x40
call dword [0x48c0d4]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x414f91
push 0x89b8
push 0x4806c0
mov eax, dword [ebp - 0x50]
push eax
call fcn.004231d0
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x4c]
add ecx, 0x10000
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x4c]
add eax, 0x20000
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x30000], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x30004], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
mov dword [edx + 0x30008], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0x3000c], 0x474920
mov edx, dword [ebp - 0x4c]
push edx
call dword [ebp - 0x48]
cmp eax, 1
jne 0x414f87
mov dword [ebp - 0x54], 0
jmp 0x414f10
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x1e
jge 0x414f87
mov ecx, dword [ebp - 0x54]
imul ecx, ecx, 0x650
mov edx, dword [ecx + 0x474920]
cmp edx, dword [ebp + 8]
jne 0x414f85
mov eax, dword [ebp - 0x54]
imul eax, eax, 0x650
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x474928], ecx
cmp dword [ebp + 8], 0x15
jne 0x414f55
mov edx, dword [ebp - 0x54]
imul edx, edx, 0x650
mov dword [edx + 0x47492c], 1
mov eax, dword [ebp - 4]
push eax
call dword [0x48c0e0]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x48c0e0]
mov edx, dword [ebp - 0x10]
push edx
call dword [0x48c0e0]
mov eax, dword [ebp - 0x14]
push eax
call dword [0x48c0e0]
mov eax, dword [ebp - 0x3c]
jmp 0x415022
jmp 0x414f07
mov ecx, dword [ebp - 0x50]
push ecx
call dword [0x48c0e0]
mov edx, dword [ebp - 0x4c]
push edx
call dword [0x48c0e0]
cmp dword [ebp - 0x3c], 0
je 0x414fd2
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00415250
add esp, 4
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x414fd2
push 0
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [ebp - 0x58]
push 0x8000
push 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x20]
push eax
call dword [0x48c0e0]
cmp dword [ebp - 0x18], 0xffffffff
je 0x414fec
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
push edx
call dword [0x48c0e0]
cmp dword [ebp - 0xc], 0
je 0x415006
mov eax, dword [ebp - 0xc]
push eax
call dword [0x48c0e0]
cmp dword [ebp - 0x10], 0
je 0x415016
mov ecx, dword [ebp - 0x10]
push ecx
call dword [0x48c0e0]
mov edx, dword [ebp - 4]
push edx
call dword [0x48c0e0]
xor eax, eax
mov esp, ebp
pop ebp
ret