Function at 0x1005cd99
Capabilities:
Get file size

Disassembly:
push 0x70
mov eax, 0x100af7db
call fcn.10091010
mov dword [ebp - 0x60], ecx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x44]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x75
pop edx
mov dword [ebp - 0x64], eax
call fcn.1004a72b
and dword [ebp - 4], 0
mov ebx, 0x100cc9c4
push ebx
call fcn.10006fa1
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x44]
call fcn.10006a1b
push 0x100cc9d8
lea ecx, [ebp - 0x2c]
call fcn.10006fbe
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x74]
call fcn.1004eb0e
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.100072c0
lea ecx, [ebp - 0x44]
call fcn.1004b64a
test eax, eax
je 0x1005ce26
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x74]
call fcn.1004edf1
test eax, eax
je 0x1005d02c
mov ebx, 0x100cc9e8
lea ecx, [ebp - 0x5c]
push ebx
call fcn.10006fbe
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x6c]
call fcn.1004eb0e
push 0
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.100072c0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10006fbe
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x74]
call fcn.1004eca2
mov ebx, eax
lea eax, [ebp - 0x6c]
cmp eax, ebx
je 0x1005ce88
push ebx
mov ecx, eax
call fcn.1005cb6d
mov eax, dword [ebx + 4]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x7c]
call fcn.1005cbaa
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.100072c0
mov ebx, dword [ebp - 0x60]
lea eax, [ebx + 0x74]
cmp dword [eax + 0x14], 0x10
jb 0x1005ceae
mov eax, dword [eax]
push 0x100cc9f4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x60], eax
call fcn.10006fbe
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.1005e35a
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.100072c0
cmp dword [esi + 0x14], 0x10
jb 0x1005ceec
mov eax, dword [esi]
jmp 0x1005ceee
mov eax, esi
push 0x100cc9fc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x60], eax
call fcn.10006fbe
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.1005e35a
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.100072c0
mov eax, dword [ebp - 0x64]
cmp dword [eax + 0x14], 0x10
jb 0x1005cf2d
mov eax, dword [eax]
push 0x100cca08
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x64], eax
call fcn.10006fbe
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.1005e35a
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.100072c0
cmp dword [edi + 0x14], 0x10
jb 0x1005cf6b
mov eax, dword [edi]
jmp 0x1005cf6d
mov eax, edi
push 0x100cca14
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x64], eax
call fcn.10006fbe
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.1005e35a
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.100072c0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x74]
call fcn.1004ee67
cmp dword [esi + 0x14], 0x10
jb 0x1005cfb5
mov esi, dword [esi]
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1005cff6
call fcn.10045657
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x72
push 0x100cca1c
push 0x100cca38
push esi
call fcn.100448e6
add esp, 0x14
jmp 0x1005d024
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx + 0x11c], eax
test esi, esi
je 0x1005d010
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebx + 0xec]
cmp ecx, edi
je 0x1005d024
push 0xffffffffffffffff
push 0
push edi
call fcn.1000721f
lea ecx, [ebp - 0x6c]
call fcn.1005cbaa
lea ecx, [ebp - 0x74]
call fcn.1005cbaa
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.100072c0
call fcn.10090fbf
ret 0xc