Function at 0x414330
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.00413720
add esp, 4
cmp eax, 1
jne 0x41434e
xor eax, eax
jmp 0x414702
lea ecx, [ebp - 8]
push ecx
push 0x47df28
call fcn.0040a510
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x414700
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.004137d0
add esp, 0xc
cmp eax, 1
jne 0x4146f6
push 0xfffe
push 0x40
call dword [0x489894]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4146d6
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4334b0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [0x489c3c]
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 0x4146cc
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 0x4146bc
mov edx, dword [ebp - 0x1c]
push edx
push 0x40
call dword [0x489894]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4146bc
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 0x4146b2
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 [0x47fcb8]
mov dword [ebp - 0x38], edx
mov eax, dword [str.w_0b]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x44], 0
jmp 0x4144a8
mov edx, dword [ebp - 0x44]
add edx, 1
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x40]
jge 0x4144ea
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 0x47fc98
push 0
push 0x20
mov eax, dword [ebp - 0x28]
push eax
call fcn.0041a040
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 0x41449f
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0041ccc0
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x4146b2
push 0x65
mov edx, dword [ebp - 0x3c]
push edx
call fcn.004149b0
add esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x41467b
push 0x30010
push 0x40
call dword [0x489894]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x41467b
push 0x8918
push 0x40
call dword [0x489894]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x414671
push 0x8918
push 0x47df28
mov eax, dword [ebp - 0x50]
push eax
call fcn.004228e0
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], 0x472188
mov edx, dword [ebp - 0x4c]
push edx
call dword [ebp - 0x48]
cmp eax, 1
jne 0x414667
mov dword [ebp - 0x54], 0
jmp 0x4145f0
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x1e
jge 0x414667
mov ecx, dword [ebp - 0x54]
imul ecx, ecx, 0x650
mov edx, dword [ecx + 0x472188]
cmp edx, dword [ebp + 8]
jne 0x414665
mov eax, dword [ebp - 0x54]
imul eax, eax, 0x650
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x472190], ecx
cmp dword [ebp + 8], 0x15
jne 0x414635
mov edx, dword [ebp - 0x54]
imul edx, edx, 0x650
mov dword [edx + 0x472194], 1
mov eax, dword [ebp - 4]
push eax
call dword [0x4898a0]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x4898a0]
mov edx, dword [ebp - 0x10]
push edx
call dword [0x4898a0]
mov eax, dword [ebp - 0x14]
push eax
call dword [0x4898a0]
mov eax, dword [ebp - 0x3c]
jmp 0x414702
jmp 0x4145e7
mov ecx, dword [ebp - 0x50]
push ecx
call dword [0x4898a0]
mov edx, dword [ebp - 0x4c]
push edx
call dword [0x4898a0]
cmp dword [ebp - 0x3c], 0
je 0x4146b2
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00414930
add esp, 4
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x4146b2
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 [0x4898a0]
cmp dword [ebp - 0x18], 0xffffffff
je 0x4146cc
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
push edx
call dword [0x4898a0]
cmp dword [ebp - 0xc], 0
je 0x4146e6
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4898a0]
cmp dword [ebp - 0x10], 0
je 0x4146f6
mov ecx, dword [ebp - 0x10]
push ecx
call dword [0x4898a0]
mov edx, dword [ebp - 4]
push edx
call dword [0x4898a0]
xor eax, eax
mov esp, ebp
pop ebp
ret