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

Disassembly:
push ebp
sub esp, 0x60
push 0x100
mov eax, 0x1018f9d4
call fcn.1015e3cb
mov dword [ebp + 0x54], ecx
xor edi, edi
inc edi
push edi
xor ebx, ebx
push 2
lea ecx, [ebp - 0x10c]
mov dword [ebp + 0x5c], ebx
mov byte [ebp + 0x5b], bl
call fcn.100112f0
mov ecx, dword [ebp + 0x54]
push ebx
lea eax, [ebp]
push eax
mov dword [ebp - 4], ebx
call fcn.100fd58a
mov esi, str.Global.db
push esi
push eax
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 4], 1
call fcn.100258f0
pop ecx
pop ecx
push eax
call fcn.10010130
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp]
mov byte [ebp - 4], bl
call fcn.10003eb0
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10c]
call fcn.10008a20
cmp dword [eax + 0x18], 0x10
jb 0x100fd701
mov eax, dword [eax + 4]
jmp 0x100fd704
add eax, 4
push ebx
push ebx
push 3
push ebx
push edi
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push edi
lea ecx, [ebp]
mov dword [ebp + 0x5c], eax
call fcn.10003eb0
cmp dword [ebp + 0x5c], 0xffffffff
jne 0x100fd90b
push edi
push 2
lea ecx, [ebp - 0x8c]
call fcn.100112f0
mov ecx, dword [ebp + 0x54]
push edi
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.100fd58a
push esi
push eax
lea eax, [ebp - 0x8c]
push eax
mov byte [ebp - 4], 3
call fcn.100258f0
pop ecx
pop ecx
push eax
call fcn.10010130
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call fcn.10003eb0
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x10c]
call fcn.10008a20
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 4
mov dword [ebp + 0x5c], edi
jb 0x100fd797
mov eax, dword [eax + 4]
jmp 0x100fd79a
add eax, 4
push eax
call fcn.1002ab70
test al, al
pop ecx
jne 0x100fd7df
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x8c]
call fcn.10008a20
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], 5
mov dword [ebp + 0x5c], 3
jb 0x100fd7cd
mov eax, dword [eax + 4]
jmp 0x100fd7d0
add eax, 4
push eax
call fcn.1002ab70
test al, al
pop ecx
mov byte [ebp + 0x63], 1
jne 0x100fd7e2
mov byte [ebp + 0x63], bl
test byte [ebp + 0x5c], 2
je 0x100fd7f6
and dword [ebp + 0x5c], 0xfffffffd
push ebx
push edi
lea ecx, [ebp + 0x1c]
call fcn.10003eb0
test byte [ebp + 0x5c], 1
mov dword [ebp - 4], 2
je 0x100fd80d
push ebx
push edi
lea ecx, [ebp + 0x38]
call fcn.10003eb0
cmp byte [ebp + 0x63], bl
je 0x100fd8bb
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x10c]
call fcn.10008a20
mov esi, eax
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 6
call fcn.10008a20
cmp dword [esi + 0x18], 0x10
mov byte [ebp - 4], 7
jb 0x100fd849
mov esi, dword [esi + 4]
jmp 0x100fd84c
add esi, 4
cmp dword [eax + 0x18], 0x10
jb 0x100fd857
mov eax, dword [eax + 4]
jmp 0x100fd85a
add eax, 4
push ebx
push esi
push eax
call fcn.100aa260
add esp, 0xc
push ebx
push edi
lea ecx, [ebp + 0x38]
mov byte [ebp + 0x63], al
call fcn.10003eb0
push ebx
push edi
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call fcn.10003eb0
cmp byte [ebp + 0x63], bl
je 0x100fd8bb
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x8c]
call fcn.10008a20
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 8
jb 0x100fd8a3
mov eax, dword [eax + 4]
jmp 0x100fd8a6
add eax, 4
push eax
call fcn.1002fca0
pop ecx
push ebx
push edi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 2
call fcn.10003eb0
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x8c]
call fcn.10008a20
cmp dword [eax + 0x18], 0x10
jb 0x100fd8d5
mov eax, dword [eax + 4]
jmp 0x100fd8d8
add eax, 4
push ebx
push ebx
push 3
push ebx
push edi
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push edi
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x5c], eax
call fcn.10003eb0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], bl
call fcn.10004820
cmp dword [ebp + 0x5c], 0xffffffff
je 0x100fd944
push ebx
push dword [ebp + 0x5c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jne 0x100fd93b
push ebx
lea eax, [ebp + 0x6c]
push eax
push 0x10
push dword [ebp + 0x6c]
push dword [ebp + 0x5c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100fd93b
cmp dword [ebp + 0x6c], 0x10
jne 0x100fd93b
mov byte [ebp + 0x5b], 1
push dword [ebp + 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10c]
call fcn.10004820
mov al, byte [ebp + 0x5b]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x64
leave
ret 4