Function at 0x10013e20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x10013e7c
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
push dword [ebp - 0x50]
push dword [ebp - 0x48]
push dword [ebp - 0x70]
push dword [ebp - 0x40]
push 1
push dword [ebp - 0x8c]
push dword [ebp - 0x58]
call fcn.1001409e
add esp, 0x1c
jmp 0x1001409a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
lea eax, [ebp + 0x34]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x78]
movzx eax, byte [eax]
test eax, eax
je 0x10013ebc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x1001409a
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x4c], 0x1ca9
cmp dword [ebp - 0x4c], 0x42f
jge 0x10013f77
lea eax, [ebp - 0x10]
push eax
push 0x100089d8
call fcn.10050e4b
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x54], 0
je 0x10013f77
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x10008e68
call fcn.10050e4b
add esp, 0x10
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x20]
jg 0x10013f66
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x20]
jg 0x10013f66
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jge 0x10013f54
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x10013f5d
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
jmp 0x10013f31
push dword [ebp - 0x18]
push 0x100089dc
call fcn.10051040
pop ecx
pop ecx
jmp 0x10013f01
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x10013fbe
mov eax, dword [ebp - 0x38]
cmp dword [eax], 0
jne 0x10013fd3
push 2
mov ecx, dword [ebp - 0x1c]
call fcn.1000e00f
cmp dword [eax], 0
jne 0x10013fd3
and dword [ebp - 0x28], 0
jmp 0x10013fda
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
neg eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
sub ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x9b8a
add ecx, 0x12ed4033
cmp eax, ecx
jl 0x10014002
mov dword [ebp - 0x14], 1
jmp 0x10014006
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
cmp dword [ebp - 0x14], 0
jne 0x10014023
mov eax, 0x1dce
test eax, eax
jne 0x10014023
and dword [ebp - 0x30], 0
jmp 0x1001402a
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x30], eax
je 0x1001403d
mov dword [ebp - 0x24], 1
jmp 0x10014041
and dword [ebp - 0x24], 0
push 0
mov ecx, dword [ebp - 0x1c]
call fcn.1000e00f
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
imul ecx, dword [ebp - 0x24]
mov eax, dword [eax]
sub eax, ecx
test eax, eax
jle 0x1001406a
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
jne 0x1001406a
and dword [ebp - 0x34], 0
jmp 0x10014071
mov dword [ebp - 0x34], 1
push 0
mov ecx, dword [ebp - 0x1c]
call fcn.1000e00f
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [eax]
jge 0x1001408b
mov dword [ebp - 0x3c], 1
jmp 0x1001408f
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret