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

Disassembly:
push 0xac
mov eax, 0x100ebcbf
call fcn.100c74e5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x8c], edi
cmp dword [ebp + 0x24], edi
jne 0x1003cec8
xor ebx, ebx
push edi
push 1
lea esi, [ebp + 0x10]
call fcn.100016e6
mov eax, ebx
call fcn.100c7568
ret 0x28
lea eax, [ebp + 0x10]
push eax
lea esi, [ebp - 0x58]
call fcn.1000e554
push 0xa
push 0x13
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
call fcn.100c391f
add esp, 0x10
push 0x10107d2c
lea eax, [ebp + 0x10]
call fcn.100289a1
cmp eax, 0xffffffff
lea eax, [ebp + 0x10]
je 0x1003cf4d
push str.btnId
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.1001606f
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push eax
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 2
call fcn.1001606f
add esp, 0xc
push 0xffffffffffffffff
mov ecx, esi
push ecx
xor ebx, ebx
mov byte [ebp - 4], 3
call fcn.1000165f
push edi
push 1
lea esi, [ebp - 0x74]
call fcn.100016e6
lea esi, [ebp - 0xb8]
jmp 0x1003cf99
push str._btnId
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.1001606f
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push eax
lea eax, [ebp - 0xb8]
push eax
mov byte [ebp - 4], 4
call fcn.1001606f
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x58]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 5
call fcn.1000165f
push edi
push 1
lea esi, [ebp - 0xb8]
call fcn.100016e6
lea esi, [ebp - 0x74]
push edi
push 1
mov byte [ebp - 4], 1
call fcn.100016e6
mov esi, dword [ebp - 0x78]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x9c]
add esi, 0x20
push eax
push esi
mov dword [ebp - 0x80], esi
call fcn.10014cef
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x90], eax
mov eax, dword [esi]
lea edi, [ebp - 0x94]
lea esi, [ebp - 0x9c]
mov dword [ebp - 0x94], eax
call fcn.10056222
test al, al
jne 0x1003d00d
call fcn.100156f8
cmp dword [eax + 0x1c], 0
je 0x1003d00d
call fcn.100156f8
mov edi, dword [eax + 0x1c]
push 0
push 1
lea esi, [ebp - 0x58]
call fcn.100016e6
mov ebx, edi
xor edi, edi
jmp 0x1003ceb3
mov ebx, dword [ebp - 0x78]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x94]
add ebx, 0x60
push eax
call fcn.1003eba6
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x78], eax
mov eax, dword [ebx]
lea edi, [ebp - 0x7c]
lea esi, [ebp - 0x94]
mov dword [ebp - 0x7c], eax
call fcn.10056222
test al, al
je 0x1003d0d0
lea eax, [ebp - 0x70]
push eax
call fcn.1003eff9
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 6
call fcn.1003f13c
push ebx
lea ebx, [ebp + 0xc]
call fcn.1003ec07
lea esi, [ebp - 0x70]
call fcn.1003f044
mov byte [ebp - 4], 1
call fcn.10040295
push dword [ebp - 0x70]
call fcn.100a212e
pop ecx
mov ebx, dword [ebp - 0x80]
cmp dword [ebp + 0x2c], 1
jne 0x1003d2e1
cmp dword [ebp - 0x40], 8
mov eax, dword [ebp - 0x54]
jae 0x1003d099
lea eax, [ebp - 0x54]
xor ecx, ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push 0xffffffffffffffff
push eax
push 0x101364f0
call fcn.1004974e
test eax, eax
je 0x1003d3bc
push dword [ebp - 0x80]
push dword [ebp - 0x78]
call fcn.100971a9
pop ecx
pop ecx
push dword [ebp - 0x78]
jmp 0x1003d357
lea esi, [ebp - 0x94]
call fcn.100156f8
lea edi, [eax + 4]
mov ebx, dword [edi + 0xc]
lea esi, [ebp - 0x88]
call fcn.10029e26
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x78], eax
lea esi, [ebp - 0x94]
call fcn.100156f8
lea edi, [eax + 4]
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x88]
call fcn.10029e26
mov edi, dword [ebp - 0x7c]
test edi, edi
je 0x1003d129
cmp edi, dword [ebp - 0x88]
je 0x1003d12e
call fcn.100c1c04
mov ebx, dword [ebp - 0x78]
cmp ebx, dword [ebp - 0x84]
je 0x1003d170
lea esi, [ebp - 0x7c]
call fcn.1003efb4
lea ecx, [ebp - 0x58]
call fcn.1002b09b
test al, al
jne 0x1003d080
test edi, edi
jne 0x1003d16c
call fcn.100c1c04
cmp ebx, dword [edi + 0x10]
jb 0x1003d164
call fcn.100c1c04
add ebx, 0x1c
mov dword [ebp - 0x78], ebx
jmp 0x1003d0fe
mov edi, dword [edi]
jmp 0x1003d15a
lea esi, [ebp - 0x94]
call fcn.100156f8
mov ecx, eax
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0x10]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 0x14
jb 0x1003d2c2
call fcn.100156f8
lea edi, [eax + 4]
mov ebx, dword [edi + 0xc]
lea esi, [ebp - 0x88]
call fcn.10029e26
mov eax, dword [ebp - 0x88]
mov ebx, dword [ebp - 0x84]
lea esi, [ebp - 0x7c]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ebx
call fcn.1003efb4
push eax
lea esi, [ebp - 0x74]
call fcn.1000e554
lea esi, [ebp - 0x94]
mov byte [ebp - 4], 7
call fcn.100156f8
lea edi, [eax + 4]
push ebx
push dword [edi + 0x10]
lea eax, [ebx + 0x1c]
call fcn.1004132c
mov eax, dword [edi + 0x10]
pop ecx
pop ecx
push eax
add eax, 0xffffffe4
call fcn.1004027a
add dword [edi + 0x10], 0xffffffe4
lea esi, [ebp - 0x88]
call fcn.10029e26
mov ebx, dword [ebp - 0x80]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x88]
push eax
push ebx
call fcn.10014cef
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x78], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x84], eax
mov eax, dword [ebx]
lea edi, [ebp - 0x88]
lea esi, [ebp - 0x7c]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x88], eax
call fcn.10056222
test al, al
jne 0x1003d274
call fcn.100156f8
cmp dword [eax + 0x1c], 0
je 0x1003d261
call fcn.100156f8
push dword [eax + 0x1c]
call fcn.10097423
pop ecx
push dword [ebp - 0x78]
lea eax, [ebp - 0x88]
push dword [ebp - 0x7c]
push eax
push ebx
call fcn.1002ac1b
cmp dword [ebp - 0x5c], 8
mov eax, dword [ebp - 0x70]
jae 0x1003d280
lea eax, [ebp - 0x70]
push eax
lea edi, [ebp - 0x88]
call fcn.1000e95c
mov byte [ebp - 4], 8
push dword [eax + 4]
call fcn.100488f2
push dword [ebp - 0x88]
call fcn.100a212e
pop ecx
push dword [ebp - 0x84]
call fcn.100a212e
pop ecx
push 0
push 1
lea esi, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.100016e6
jmp 0x1003d2c5
mov ebx, dword [ebp - 0x80]
lea eax, [ebp - 0x58]
push eax
lea esi, [ebp - 0x94]
call fcn.100156f8
add eax, 4
call fcn.1003f13c
jmp 0x1003d083
cmp dword [ebp + 0x2c], 4
jne 0x1003d3bc
cmp dword [ebp - 0x40], 8
mov eax, dword [ebp - 0x54]
jae 0x1003d2f7
lea eax, [ebp - 0x54]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x1003d3bc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x80], eax
test eax, eax
jbe 0x1003d364
push eax
call fcn.100a2139
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x80]
push edi
call fcn.100971a9
pop ecx
pop ecx
push edi
mov dword [ebp - 0x8c], eax
call fcn.1004a0c8
jmp 0x1003d36b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x8c], 0
je 0x1003d3bc
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x84], eax
mov eax, dword [ebx]
lea edi, [ebp - 0x88]
lea esi, [ebp - 0x9c]
mov dword [ebp - 0x88], eax
call fcn.10056222
test al, al
jne 0x1003d3aa
call fcn.100156f8
mov ecx, dword [ebp - 0x8c]
mov dword [eax + 0x1c], ecx
jmp 0x1003d3bc
lea eax, [ebp - 0x58]
push eax
push ebx
call fcn.10028d86
mov ecx, dword [ebp - 0x8c]
mov dword [eax], ecx
push 0
push 1
lea esi, [ebp - 0x58]
call fcn.100016e6
mov ebx, dword [ebp - 0x8c]
jmp 0x1003d006