Function at 0x10049a80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c1530
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.100438e0
push 0x100f69a4
xor esi, esi
mov dword [ebp - 4], 0
push edx
mov dword [ebp - 0x38], esi
call fcn.1009df53
mov ebx, eax
add esp, 8
mov dword [ebp - 0x34], ebx
test ebx, ebx
je 0x10049d02
push 2
push esi
push ebx
call fcn.1009e23f
add esp, 0xc
push ebx
call fcn.1009e838
add esp, 4
mov ebx, eax
push esi
push esi
push dword [ebp - 0x34]
call fcn.1009e23f
add esp, 0xc
cmp ebx, 0xc800
jg 0x10049cda
lea eax, [ebx + 1]
push 0x1010e7d4
push eax
call fcn.1008ab2a
add esp, 8
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10049cda
lea ecx, [ebx + 1]
push ecx
push esi
mov esi, eax
push esi
call fcn.1008dc90
add esp, 0xc
push dword [ebp - 0x34]
push ebx
push 1
push esi
call fcn.1009ea0f
add esp, 0x10
mov dword [ebp - 0x18], 0xf
cmp byte [esi], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jne 0x10049b70
xor ecx, ecx
jmp 0x10049b7e
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10049b75
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.10048bc0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x10049be8
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x1000
jb 0x10049bdf
test cl, 0x1f
je 0x10049bbb
call fcn.100906d1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10049bc7
call fcn.100906d1
sub ecx, eax
cmp ecx, 4
jae 0x10049bd3
call fcn.100906d1
cmp ecx, 0x23
jbe 0x10049bdd
call fcn.100906d1
mov ecx, eax
push ecx
call fcn.1008a772
add esp, 4
push 0x1010e7d4
push 0x2800
call fcn.1008ab2a
mov esi, eax
add esp, 8
test esi, esi
je 0x10049cda
push 0x2800
push 0
push esi
call fcn.1008dc90
add esp, 0xc
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x4c]
push eax
call fcn.10043580
lea ecx, [ebp - 0x4c]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.10043540
push eax
lea ecx, [ebp - 0x30]
call fcn.100368a0
test al, al
je 0x10049cd3
mov ebx, dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
call fcn.10043270
cmp edi, eax
je 0x10049c5d
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.100058d2
cmp dword [edi + 0x10], 0
je 0x10049cae
push 0x27ff
mov ecx, edi
call fcn.10005755
push eax
push esi
call fcn.100a0050
add esp, 0xc
mov eax, esi
nop dword [eax + eax]
mov cl, byte [eax]
cmp cl, 0x20
je 0x10049c8c
cmp cl, 9
jne 0x10049c8f
inc eax
jmp 0x10049c80
cmp byte [eax], 0x3b
je 0x10049cae
push 0x3b
push esi
call fcn.10048b40
add esp, 8
test eax, eax
je 0x10049ca6
mov byte [eax], 0
push esi
mov ecx, ebx
call fcn.10048f20
lea ecx, [ebp - 0x30]
call fcn.10043260
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.10043540
push eax
lea ecx, [ebp - 0x30]
call fcn.100368a0
test al, al
jne 0x10049c45
mov dword [ebp - 0x30], 1
push dword [ebp - 0x34]
call fcn.1009edc5
mov eax, dword [ebp - 0x38]
add esp, 4
test eax, eax
je 0x10049cf5
push eax
call fcn.1008aaf2
add esp, 4
test esi, esi
je 0x10049d02
push esi
call fcn.1008aaf2
add esp, 4
lea ecx, [ebp - 0x4c]
call fcn.10043800
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.1008a777
mov esp, ebp
pop ebp
ret 0xc