Function at 0x10005b30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
push esi
push edi
push ecx
lea edi, [ebp - 0x658]
mov ecx, 0x196
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x100780f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov word [ebp - 0x218], 0
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.10018f20
add esp, 0xc
mov word [ebp - 0x428], 0
push 0x206
push 0
lea ecx, [ebp - 0x426]
push ecx
call fcn.10018f20
add esp, 0xc
mov word [ebp - 0x638], 0
push 0x206
push 0
lea edx, [ebp - 0x636]
push edx
call fcn.10018f20
add esp, 0xc
mov word [ebp - 0x650], 0
xor eax, eax
mov dword [ebp - 0x64e], eax
mov dword [ebp - 0x64a], eax
mov dword [ebp - 0x646], eax
mov word [ebp - 0x642], ax
lea ecx, [ebp - 0x650]
push ecx
lea edx, [ebp - 0x638]
push edx
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10019030
add esp, 0x14
lea eax, [ebp - 0x638]
push eax
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
call fcn.10018ff0
add esp, 8
lea edx, [ebp - 0x650]
push edx
mov eax, dword [ebp - 8]
add eax, 4
push eax
call fcn.10018fa0
add esp, 8
push 0
mov ecx, dword [ebp - 8]
call fcn.10009680
test eax, eax
je 0x10005cb9
mov esi, esp
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp esi, esp
call fcn.10015320
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x20c], eax
mov esi, esp
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.10015320
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x210], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x210], 0x3a00
jae 0x10005cb7
mov eax, 0x80000007
jmp 0x10005d8b
jmp 0x10005d27
mov esi, esp
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp esi, esp
call fcn.10015320
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0x20c], edx
mov esi, esp
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.10015320
mov edx, dword [ebp - 8]
mov dword [edx + 0x210], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x210], 0x3a00
jae 0x10005d27
mov eax, 0x80000007
jmp 0x10005d8b
cmp dword [ebp - 0xc], 0
jne 0x10005d55
mov esi, esp
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp esi, esp
call fcn.10015320
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10005d61
cmp dword [ebp - 0xc], 0xffffffff
jne 0x10005d7d
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.10015320
mov dword [ebp - 0x658], eax
mov eax, 0x80000010
jmp 0x10005d8b
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x20c], eax
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x10005dbc]
call fcn.10015350
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019470
add esp, 0x658
cmp ebp, esp
call fcn.10015320
mov esp, ebp
pop ebp
ret 4