Function at 0x1000fea0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004e2c8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x100661b0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x100661b0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], eax
call fcn.10017830
mov dword [esp + 0x98], 0
test edi, edi
mov ebx, 0x100be668
je 0x1000ff16
mov dword [edi], 0
test esi, esi
jne 0x1000ff38
mov dword [esp + 0x98], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.10017970
mov eax, 0x100be668
jmp 0x10010113
lea edx, [esp + 0x40]
push edx
mov edx, 0x10055324
call fcn.100046b0
mov byte [esp + 0x98], 1
lea eax, [esp + 0x20]
push eax
mov edx, esi
call fcn.100046b0
mov byte [esp + 0x98], 2
mov eax, dword [esp + 0x64]
test eax, eax
je 0x1000ff74
push eax
call fcn.100366fa
add esp, 4
cmp dword [esp + 0x38], 0
mov dword [esp + 0x64], 0
je 0x1000ffd0
mov ecx, dword [esp + 0x48]
mov eax, 8
cmp dword [esp + 0x5c], eax
jae 0x1000ff96
lea ecx, [esp + 0x48]
cmp dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
jae 0x1000ffa4
lea eax, [esp + 0x28]
push 0x20
push ecx
push eax
call fcn.10036ce2
add esp, 0xc
test eax, eax
mov dword [esp + 0x64], eax
je 0x1000ffd0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x74]
call fcn.100035b0
mov byte [esp + 0x13], 1
jmp 0x1000ffd5
mov byte [esp + 0x13], 0
mov byte [esp + 0x98], 1
lea ecx, [esp + 0x20]
call fcn.10004620
mov byte [esp + 0x98], 0
lea ecx, [esp + 0x40]
call fcn.10004620
cmp byte [esp + 0x13], 0
je 0x100100b0
mov ecx, dword [esp + 0x64]
push 2
push 0
push ecx
call fcn.1003546a
mov edx, dword [esp + 0x70]
add esp, 0xc
push edx
call fcn.10035687
add esp, 4
push 0
mov edi, eax
mov eax, dword [esp + 0x68]
push 0
push eax
call fcn.1003546a
lea ecx, [edi + 1]
add esp, 0xc
push ecx
call fcn.10034bff
mov esi, eax
mov eax, dword [esp + 0x68]
add esp, 4
test esi, esi
jne 0x10010060
test eax, eax
je 0x10010056
push eax
call fcn.100366fa
add esp, 4
mov dword [esp + 0x64], 0
jmp 0x100100b0
test eax, eax
je 0x10010071
push eax
push edi
push 1
push esi
call fcn.10036c2c
add esp, 0x10
mov byte [esi + edi], 0
mov eax, dword [esp + 0x64]
test eax, eax
je 0x10010086
push eax
call fcn.100366fa
add esp, 4
mov ecx, esi
mov dword [esp + 0x64], 0
call fcn.10010670
push esi
mov ebx, eax
call fcn.10034fb4
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x100100b0
mov edx, dword [0x100c0818]
mov dword [eax], edx
mov edi, dword [esp + 0x18]
test edi, edi
je 0x100100fd
mov eax, dword [ebx]
mov edx, dword [eax + 0x5c]
mov ecx, ebx
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x6c]
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [edx + 0xc]
push ebx
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x8c]
push esi
mov ecx, edi
call eax
mov dword [esp + 0x98], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.10017970
mov eax, edi
jmp 0x10010113
mov dword [esp + 0x98], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.10017970
mov eax, ebx
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.100346f8
mov esp, ebp
pop ebp
ret 0xc