Function at 0x1005e6d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x101e6b6c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, 0x102b7acd
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.10124b2c
push edi
call fcn.1004dab0
push ebx
lea esi, [eax - 1]
mov dword [ebp - 0x220], esi
call fcn.10139ee2
add esp, 8
test esi, esi
jne 0x1005e72f
push 1
push ebx
push edi
call fcn.1005eea0
mov esi, eax
add esp, 0xc
mov eax, dword [ebp + 0x10]
inc eax
mov dword [ebp - 0x21c], eax
jmp 0x1005e8e4
push str.too_many_arguments
lea eax, [esi + 0x14]
push eax
push edi
call fcn.1004f8e0
mov esi, dword [ebp + 0x10]
mov eax, 1
mov ecx, dword [ebp - 0x220]
add esp, 0xc
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x21c], esi
nop dword [eax + eax]
dec ecx
mov dword [ebp - 0x220], ecx
test eax, eax
je 0x1005e8de
push esi
push edi
call fcn.1004ed80
add esp, 8
cmp eax, 3
jne 0x1005e810
push esi
push edi
call fcn.1004f700
mov esi, eax
add esp, 8
test esi, esi
jne 0x1005e7c2
push ebx
call fcn.101394d4
mov esi, eax
push ebx
push esi
call fcn.1013aeae
push 0x10167ca0
push edi
call fcn.1004e170
xor eax, eax
add esp, 0x14
cmp esi, 0xffffffff
mov esi, dword [ebp - 0x21c]
setne al
jmp 0x1005e8c3
lea eax, [ebp - 0x214]
push eax
push edi
call fcn.1004f630
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.10050410
push ebx
push esi
push 1
push eax
call fcn.10135779
mov esi, eax
lea eax, [ebp - 0x214]
add dword [ebp - 0x20c], esi
push eax
call fcn.10050430
xor eax, eax
add esp, 0x24
cmp eax, esi
mov esi, dword [ebp - 0x21c]
sbb eax, eax
neg eax
jmp 0x1005e8c3
push 0
push esi
push edi
call fcn.1004f780
add esp, 0xc
mov cl, byte [eax]
cmp cl, 0x2a
jne 0x1005e826
mov cl, byte [eax + 1]
movsx eax, cl
add eax, 0xffffffb4
cmp eax, 0x22
ja case.0x1005e83c.77
movzx eax, byte [eax + 0x1005e974]
jmp dword [eax*4 + 0x1005e960]
push ebx
push edi
call fcn.1005efe0
add esp, 8
jmp 0x1005e8c3
push 1
push ebx
push edi
call fcn.1005eea0
add esp, 0xc
jmp 0x1005e8c3
push 0
push ebx
push edi
call fcn.1005eea0
add esp, 0xc
jmp 0x1005e8c3
lea eax, [ebp - 0x214]
push eax
push edi
call fcn.1004f630
add esp, 8
nop dword [eax + eax]
lea eax, [ebp - 0x214]
push 0x200
push eax
call fcn.10050410
push ebx
push 0x200
push 1
push eax
call fcn.10135779
add dword [ebp - 0x20c], eax
add esp, 0x18
cmp eax, 0x200
je 0x1005e880
lea eax, [ebp - 0x214]
push eax
call fcn.10050430
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0x220]
inc esi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x21c], esi
test ecx, ecx
jne 0x1005e760
mov esi, dword [ebp - 0x218]
push ebx
call fcn.10139227
add esp, 4
test eax, eax
je 0x1005e92f
push 0
push 0
push edi
call fcn.1004fbc0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10124b5e
mov esp, ebp
pop ebp
ret
push str.invalid_format
push esi
push edi
call fcn.1004f510
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10124b5e
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x1005e944
push 0xfffffffffffffffe
push edi
call fcn.1004e8b0
push edi
call fcn.1004e120
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
xor ecx, ebp
sub eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
call fcn.10124b5e
mov esp, ebp
pop ebp
ret