Function at 0x1004ae50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c2c30
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x4c]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x30], 0
call fcn.10044cb0
push 0x100f95a4
xor esi, esi
mov dword [ebp - 4], 0
push edx
mov dword [ebp - 0x38], esi
call fcn.1009f323
mov ebx, eax
add esp, 8
mov dword [ebp - 0x34], ebx
test ebx, ebx
je 0x1004b0d2
push 2
push esi
push ebx
call fcn.1009f60f
add esp, 0xc
push ebx
call fcn.1009fc08
add esp, 4
mov ebx, eax
push esi
push esi
push dword [ebp - 0x34]
call fcn.1009f60f
add esp, 0xc
cmp ebx, 0xc800
jg 0x1004b0aa
lea eax, [ebx + 1]
push 0x10111924
push eax
call fcn.1008befa
add esp, 8
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1004b0aa
lea ecx, [ebx + 1]
push ecx
push esi
mov esi, eax
push esi
call fcn.1008f060
add esp, 0xc
push dword [ebp - 0x34]
push ebx
push 1
push esi
call fcn.1009fddf
add esp, 0x10
mov dword [ebp - 0x18], 0xf
cmp byte [esi], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jne 0x1004af40
xor ecx, ecx
jmp 0x1004af4e
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004af45
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10005859
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 1
push eax
push ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.10049f90
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x1004afb8
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x1000
jb 0x1004afaf
test cl, 0x1f
je 0x1004af8b
call fcn.10091aa1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x1004af97
call fcn.10091aa1
sub ecx, eax
cmp ecx, 4
jae 0x1004afa3
call fcn.10091aa1
cmp ecx, 0x23
jbe 0x1004afad
call fcn.10091aa1
mov ecx, eax
push ecx
call fcn.1008bb42
add esp, 4
push 0x10111924
push 0x2800
call fcn.1008befa
mov esi, eax
add esp, 8
test esi, esi
je 0x1004b0aa
push 0x2800
push 0
push esi
call fcn.1008f060
add esp, 0xc
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x4c]
push eax
call fcn.10044950
lea ecx, [ebp - 0x4c]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.10044910
push eax
lea ecx, [ebp - 0x30]
call fcn.10037c80
test al, al
je 0x1004b0a3
mov ebx, dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
call fcn.10044640
cmp edi, eax
je 0x1004b02d
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.100058d2
cmp dword [edi + 0x10], 0
je 0x1004b07e
push 0x27ff
mov ecx, edi
call fcn.10005755
push eax
push esi
call fcn.100a1420
add esp, 0xc
mov eax, esi
nop dword [eax + eax]
mov cl, byte [eax]
cmp cl, 0x20
je 0x1004b05c
cmp cl, 9
jne 0x1004b05f
inc eax
jmp 0x1004b050
cmp byte [eax], 0x3b
je 0x1004b07e
push 0x3b
push esi
call fcn.10049f10
add esp, 8
test eax, eax
je 0x1004b076
mov byte [eax], 0
push esi
mov ecx, ebx
call fcn.1004a2f0
lea ecx, [ebp - 0x30]
call fcn.10044630
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.10044910
push eax
lea ecx, [ebp - 0x30]
call fcn.10037c80
test al, al
jne 0x1004b015
mov dword [ebp - 0x30], 1
push dword [ebp - 0x34]
call fcn.100a0195
mov eax, dword [ebp - 0x38]
add esp, 4
test eax, eax
je 0x1004b0c5
push eax
call fcn.1008bec2
add esp, 4
test esi, esi
je 0x1004b0d2
push esi
call fcn.1008bec2
add esp, 4
lea ecx, [ebp - 0x4c]
call fcn.10044bd0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret 0xc