Function at 0x10049de0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c18d0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1010b070]
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.10043c40
push 0x100f728c
xor esi, esi
mov dword [ebp - 4], 0
push edx
mov dword [ebp - 0x38], esi
call fcn.1009e1d3
mov ebx, eax
add esp, 8
mov dword [ebp - 0x34], ebx
test ebx, ebx
je 0x1004a062
push 2
push esi
push ebx
call fcn.1009e4bf
add esp, 0xc
push ebx
call fcn.1009eab8
add esp, 4
mov ebx, eax
push esi
push esi
push dword [ebp - 0x34]
call fcn.1009e4bf
add esp, 0xc
cmp ebx, 0xc800
jg 0x1004a03a
lea eax, [ebx + 1]
push 0x1010e924
push eax
call fcn.1008adaa
add esp, 8
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1004a03a
lea ecx, [ebx + 1]
push ecx
push esi
mov esi, eax
push esi
call fcn.1008df10
add esp, 0xc
push dword [ebp - 0x34]
push ebx
push 1
push esi
call fcn.1009ec8f
add esp, 0x10
mov dword [ebp - 0x18], 0xf
cmp byte [esi], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jne 0x10049ed0
xor ecx, ecx
jmp 0x10049ede
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10049ed5
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.100057f3
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 1
push eax
push ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.10048f20
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x10049f48
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x1000
jb 0x10049f3f
test cl, 0x1f
je 0x10049f1b
call fcn.10090951
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10049f27
call fcn.10090951
sub ecx, eax
cmp ecx, 4
jae 0x10049f33
call fcn.10090951
cmp ecx, 0x23
jbe 0x10049f3d
call fcn.10090951
mov ecx, eax
push ecx
call fcn.1008a9f2
add esp, 4
push 0x1010e924
push 0x2800
call fcn.1008adaa
mov esi, eax
add esp, 8
test esi, esi
je 0x1004a03a
push 0x2800
push 0
push esi
call fcn.1008df10
add esp, 0xc
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x4c]
push eax
call fcn.100438e0
lea ecx, [ebp - 0x4c]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.100438a0
push eax
lea ecx, [ebp - 0x30]
call fcn.10036c00
test al, al
je 0x1004a033
mov ebx, dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
call fcn.100435d0
cmp edi, eax
je 0x10049fbd
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.1000586c
cmp dword [edi + 0x10], 0
je 0x1004a00e
push 0x27ff
mov ecx, edi
call fcn.100056ef
push eax
push esi
call fcn.100a02d0
add esp, 0xc
mov eax, esi
nop dword [eax + eax]
mov cl, byte [eax]
cmp cl, 0x20
je 0x10049fec
cmp cl, 9
jne 0x10049fef
inc eax
jmp 0x10049fe0
cmp byte [eax], 0x3b
je 0x1004a00e
push 0x3b
push esi
call fcn.10048ea0
add esp, 8
test eax, eax
je 0x1004a006
mov byte [eax], 0
push esi
mov ecx, ebx
call fcn.10049280
lea ecx, [ebp - 0x30]
call fcn.100435c0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.100438a0
push eax
lea ecx, [ebp - 0x30]
call fcn.10036c00
test al, al
jne 0x10049fa5
mov dword [ebp - 0x30], 1
push dword [ebp - 0x34]
call fcn.1009f045
mov eax, dword [ebp - 0x38]
add esp, 4
test eax, eax
je 0x1004a055
push eax
call fcn.1008ad72
add esp, 4
test esi, esi
je 0x1004a062
push esi
call fcn.1008ad72
add esp, 4
lea ecx, [ebp - 0x4c]
call fcn.10043b60
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.1008a9f7
mov esp, ebp
pop ebp
ret 0xc