Function at 0x1004a2f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c1ee0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1010c070]
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.10044150
push 0x100f82dc
xor esi, esi
mov dword [ebp - 4], 0
push edx
mov dword [ebp - 0x38], esi
call fcn.1009e6e8
mov ebx, eax
add esp, 8
mov dword [ebp - 0x34], ebx
test ebx, ebx
je 0x1004a572
push 2
push esi
push ebx
call fcn.1009e9d4
add esp, 0xc
push ebx
call fcn.1009efcd
add esp, 4
mov ebx, eax
push esi
push esi
push dword [ebp - 0x34]
call fcn.1009e9d4
add esp, 0xc
cmp ebx, 0xc800
jg 0x1004a54a
lea eax, [ebx + 1]
push 0x1010f924
push eax
call fcn.1008b29d
add esp, 8
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1004a54a
lea ecx, [ebx + 1]
push ecx
push esi
mov esi, eax
push esi
call fcn.1008e420
add esp, 0xc
push dword [ebp - 0x34]
push ebx
push 1
push esi
call fcn.1009f1a4
add esp, 0x10
mov dword [ebp - 0x18], 0xf
cmp byte [esi], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jne 0x1004a3e0
xor ecx, ecx
jmp 0x1004a3ee
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004a3e5
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10005844
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 1
push eax
push ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.10049430
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x1004a458
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x1000
jb 0x1004a44f
test cl, 0x1f
je 0x1004a42b
call fcn.10090e61
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x1004a437
call fcn.10090e61
sub ecx, eax
cmp ecx, 4
jae 0x1004a443
call fcn.10090e61
cmp ecx, 0x23
jbe 0x1004a44d
call fcn.10090e61
mov ecx, eax
push ecx
call fcn.1008aee5
add esp, 4
push 0x1010f924
push 0x2800
call fcn.1008b29d
mov esi, eax
add esp, 8
test esi, esi
je 0x1004a54a
push 0x2800
push 0
push esi
call fcn.1008e420
add esp, 0xc
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x4c]
push eax
call fcn.10043df0
lea ecx, [ebp - 0x4c]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.10043db0
push eax
lea ecx, [ebp - 0x30]
call fcn.10037120
test al, al
je 0x1004a543
mov ebx, dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
call fcn.10043ae0
cmp edi, eax
je 0x1004a4cd
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.100058bd
cmp dword [edi + 0x10], 0
je 0x1004a51e
push 0x27ff
mov ecx, edi
call fcn.10005740
push eax
push esi
call fcn.100a07f0
add esp, 0xc
mov eax, esi
nop dword [eax + eax]
mov cl, byte [eax]
cmp cl, 0x20
je 0x1004a4fc
cmp cl, 9
jne 0x1004a4ff
inc eax
jmp 0x1004a4f0
cmp byte [eax], 0x3b
je 0x1004a51e
push 0x3b
push esi
call fcn.100493b0
add esp, 8
test eax, eax
je 0x1004a516
mov byte [eax], 0
push esi
mov ecx, ebx
call fcn.10049790
lea ecx, [ebp - 0x30]
call fcn.10043ad0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.10043db0
push eax
lea ecx, [ebp - 0x30]
call fcn.10037120
test al, al
jne 0x1004a4b5
mov dword [ebp - 0x30], 1
push dword [ebp - 0x34]
call fcn.1009f55a
mov eax, dword [ebp - 0x38]
add esp, 4
test eax, eax
je 0x1004a565
push eax
call fcn.1008b265
add esp, 4
test esi, esi
je 0x1004a572
push esi
call fcn.1008b265
add esp, 4
lea ecx, [ebp - 0x4c]
call fcn.10044070
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.1008aeea
mov esp, ebp
pop ebp
ret 0xc