Function at 0x5000f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x102c
call fcn.0051fbc0
mov eax, dword [0x5b706c]
xor eax, esp
mov dword [esp + 0x1028], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
push ebx
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0xc]
sub edi, dword [eax]
sub edi, 0x10
sar edi, 4
dec edi
mov dword [esp + 0x18], edi
call fcn.0054e3ad
add esp, 4
mov ecx, esi
test edi, edi
jne 0x500196
push 1
mov edx, ebx
call fcn.004fffc0
mov edi, dword [ebp + 8]
add esp, 4
mov ebx, eax
inc edi
push dword [esp + 0xc]
call fcn.005366c5
add esp, 4
test eax, eax
je 0x500421
call fcn.005281f2
mov ebx, dword [eax]
mov eax, dword [esi + 0xc]
push ebx
mov dword [eax + 8], 0
add dword [esi + 0xc], 0x10
call fcn.00535a10
add esp, 4
test eax, eax
jne 0x5003c2
mov eax, dword [esi + 0xc]
mov dword [eax + 8], 0
jmp 0x5003da
lea edx, [edi + 0x14]
call fcn.004e4c00
test eax, eax
je 0x50044d
mov edi, dword [ebp + 8]
mov ebx, 1
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edi
dec eax
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x50014d
mov edx, edi
mov ecx, esi
call fcn.004e4b80
cmp eax, 0x583a98
je 0x5002cf
mov eax, dword [eax + 8]
and eax, 0xf
cmp al, 3
jne 0x5002cf
mov edx, edi
mov ecx, esi
call fcn.004e4b80
cmp dword [eax + 8], 0x13
jne 0x5001ff
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
jmp 0x50021b
push 0
lea edx, [esp + 0x1c]
mov ecx, eax
call fcn.004e8900
add esp, 4
test eax, eax
je 0x50045d
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x500278
mov ebx, dword [esp + 0xc]
push ebx
call fcn.005296a9
add esp, 4
mov dword [esp + 0x10], eax
push ebx
push eax
call fcn.00529e1d
add esp, 8
mov edx, 0x5843b0
mov ecx, esi
call fcn.004f18d0
mov ecx, dword [esi + 0xc]
mov dword [ecx], eax
movzx eax, byte [eax + 4]
or eax, 0x40
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x10]
add dword [esi + 0xc], 0x10
cmp dword [eax + 0xc], 0
jle 0x500269
mov ecx, esi
call fcn.004ed380
xor ebx, ebx
cmp dword [esp + 0x10], 0xffffffff
setne bl
jmp 0x5003ac
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], esi
mov edx, ebx
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0x1000
call fcn.004e7060
push dword [esp + 0xc]
push ebx
push 1
push eax
call fcn.0052a094
add esp, 0x10
lea ecx, [esp + 0x20]
mov edi, eax
add dword [esp + 0x28], edi
call fcn.004e71f0
xor eax, eax
cmp eax, edi
mov edi, dword [esp + 0x10]
sbb ebx, ebx
neg ebx
jmp 0x5003ac
push 0
mov edx, edi
mov ecx, esi
call fcn.004e4fb0
add esp, 4
test eax, eax
je 0x500474
mov cl, byte [eax]
cmp cl, 0x2a
jne 0x5002ef
mov cl, byte [eax + 1]
movsx eax, cl
add eax, 0xffffffb4
cmp eax, 0x22
ja case.0x500305.77
movzx eax, byte [eax + 0x500494]
jmp dword [eax*4 + 0x500480]
mov edx, dword [esp + 0xc]
mov ecx, esi
call fcn.004ffc60
mov ebx, eax
jmp 0x5003ac
mov edx, dword [esp + 0xc]
mov ecx, esi
push 1
call fcn.004fffc0
add esp, 4
mov ebx, eax
jmp 0x5003ac
mov edx, dword [esp + 0xc]
mov ecx, esi
push 0
call fcn.004fffc0
add esp, 4
mov ebx, eax
jmp 0x5003ac
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0x1000
nop word [eax + eax]
mov edx, 0x1000
lea ecx, [esp + 0x20]
call fcn.004e7060
push edi
push 0x1000
push 1
push eax
call fcn.0052a094
add dword [esp + 0x38], eax
add esp, 0x10
cmp eax, 0x1000
je 0x500370
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x20]
call fcn.004e71f0
mov ebx, 1
mov eax, dword [esp + 0x14]
inc edi
mov dword [esp + 0x10], edi
test eax, eax
jne 0x5001b6
jmp 0x50014d
mov edx, eax
mov ecx, esi
call fcn.004f18d0
mov ecx, dword [esi + 0xc]
mov dword [ecx], eax
movzx eax, byte [eax + 4]
or eax, 0x40
mov dword [ecx + 8], eax
mov ecx, dword [esi + 0x10]
add dword [esi + 0xc], 0x10
mov edi, dword [esi + 0xc]
cmp dword [ecx + 0xc], 0
jle 0x5003f4
mov ecx, esi
call fcn.004ed380
mov edi, dword [esi + 0xc]
mov eax, ebx
mov dword [edi + 8], 0x13
cdq
mov dword [edi], eax
mov eax, 3
mov dword [edi + 4], edx
add dword [esi + 0xc], 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1028]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x500433
add dword [esi + 0xc], 0xfffffff0
mov eax, dword [esi + 0xc]
mov dword [eax + 8], ebx
add dword [esi + 0xc], 0x10
sub edi, dword [ebp + 8]
mov ecx, dword [esp + 0x1034]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
push str.too_many_arguments
push str.stack_overflow___s_
push esi
call fcn.004e6970
mov edx, edi
mov ecx, esi
call fcn.004e6e50
push str.invalid_format
mov edx, edi
mov ecx, esi
call fcn.004e6780
push 4
mov edx, edi
mov ecx, esi
call fcn.004e68d0
nop
xor al, byte [ebx]
push eax
add byte [esi + 3], al
push eax
add byte [esi], bl
add edx, dword [eax]
or al, 3
push eax
add byte [esi + 4], ah
push eax
add byte [eax], al
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add dword [esp + eax], eax
add al, 4
add al, 4
add al, 4
add al, 4
add al, byte [ebx + eax]
int3