Function at 0x49c039
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov eax, dword [0x500034]
xor eax, esp
mov dword [esp + 0x50], eax
cmp byte [ecx], 0
je 0x49c00b
xor ebx, ebx
jmp 0x49c018
push dword [ecx + 0x14]
call fcn.00435a18
add esp, 4
mov ebx, eax
push 0x4e7cda
push esi
call fcn.004afc63
add esp, 8
test eax, eax
je 0x49c3bb
mov edi, eax
call fcn.00436f98
mov esi, eax
push 0
push 1
push 0x8000c
call fcn.004392c8
add esp, 0xc
mov ebp, eax
mov dword [esp + 0x18], edi
push edi
push 0x8000c
push 1
push eax
call fcn.004afdfb
add esp, 0x10
mov dword [esp + 0x14], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0
lea eax, [esp + 0x3c]
mov dword [esp + 0x4c], eax
mov dword [esp + 4], esi
test esi, esi
setne al
and al, bl
mov byte [esp + 3], al
xor bl, 1
mov dword [esp + 0x10], ebx
xor eax, eax
mov dword [esp + 0x1c], 0
cmp eax, 0x40005
jbe 0x49c118
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, dword [esp + 0x20]
sub edi, eax
mov esi, dword [esp + 0x14]
add eax, esi
push edi
push eax
push esi
call fcn.004a0b28
add esp, 0xc
mov eax, 0x8000c
sub eax, edi
lea ecx, [esi + edi]
push dword [esp + 0x18]
push eax
push 1
push ecx
call fcn.004afdfb
add esp, 0x10
add edi, eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0
lea eax, [esp + 0x3c]
mov dword [esp + 0x4c], eax
jmp 0x49c11c
mov eax, dword [esp + 0x4c]
push eax
call fcn.00438f48
add esp, 4
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x4c]
push dword [esi + 0x10]
call fcn.00438f48
add esp, 4
push eax
push dword [esi + 0x10]
call fcn.00438ea8
add esp, 8
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov esi, dword [esp + 0x4c]
push dword [esi + 0x10]
call fcn.00438f48
add esp, 4
push eax
push dword [esi + 0x10]
call fcn.00438ea8
add esp, 8
push edx
push eax
call fcn.00439668
add esp, 8
mov edi, eax
cmp byte [eax], 0
je 0x49c188
push edi
call fcn.004aea00
add esp, 4
mov esi, eax
jmp 0x49c18d
mov esi, 0xffffffff
push edi
call fcn.00439358
add esp, 4
mov edi, dword [esp + 0x4c]
push dword [edi + 0x10]
call fcn.00438f48
add esp, 4
push eax
push dword [edi + 0x10]
call fcn.00438ea8
add esp, 8
mov ebp, eax
mov ebx, edx
mov edi, dword [esp + 0x4c]
push dword [edi + 0x10]
call fcn.00438f48
add esp, 4
push eax
push dword [edi + 0x10]
call fcn.00438ea8
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x4c]
cmp dword [eax + 0xc], 0
jne 0x49c388
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 8]
test eax, eax
js 0x49c1f3
test esi, esi
js 0x49c218
cmp eax, esi
je 0x49c218
test byte [esp + 0x1c], 1
jne 0x49c388
mov eax, dword [esp + 0x40]
cmp eax, 0x40005
jbe 0x49c118
jmp 0x49c0b8
mov dword [esp + 0x24], edx
mov esi, 1
push dword [0x4d84e8]
push ebx
push ebp
call fcn.004394d8
add esp, 0xc
test al, al
jne 0x49c24e
mov esi, 2
push dword [0x4d84ec]
push ebx
push ebp
call fcn.004394d8
add esp, 0xc
test al, al
je 0x49c1f3
mov eax, dword [esp + 0x28]
cmp eax, 0x100
je 0x49c2ac
cmp eax, 6
je 0x49c2c1
test eax, eax
jne 0x49c1f3
mov ebx, dword [esp + 0x68]
cmp byte [ebx], 0
jne 0x49c1f3
push dword [ebx + 0x14]
call fcn.00435d68
add esp, 4
cmp eax, 1
jne 0x49c1f3
lea eax, [esp + 0x2c]
push eax
push dword [ebx + 0x14]
call fcn.00435da8
add esp, 8
cmp dword [esp + 0xc], 4
jne 0x49c1f3
mov eax, dword [esp + 8]
mov eax, dword [eax]
cmp eax, dword [esp + 0x2c]
jne 0x49c1f3
jmp 0x49c318
mov eax, dword [esp + 0x68]
cmp byte [eax], 0
je 0x49c320
cmp dword [esp + 4], 0
jne 0x49c32b
jmp 0x49c1f3
mov ebx, dword [esp + 0x68]
cmp byte [ebx], 0
jne 0x49c1f3
push dword [ebx + 0x14]
call fcn.00435d68
add esp, 4
cmp eax, 2
jne 0x49c1f3
lea eax, [esp + 0x2c]
push eax
push dword [ebx + 0x14]
call fcn.00435da8
add esp, 8
cmp dword [esp + 0xc], 0x10
jne 0x49c1f3
push 0x10
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x10]
call fcn.0049f4a5
add esp, 0xc
test eax, eax
jne 0x49c1f3
mov eax, dword [esp + 0x10]
mov ebx, eax
jmp 0x49c349
cmp byte [esp + 3], 0
je 0x49c1f3
mov bl, 1
push dword [esp + 4]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.004394d8
add esp, 0xc
test al, al
je 0x49c1f3
mov ebp, dword [esp + 0x68]
mov dword [ebp + 0x20], esi
push dword [ebp + 0x24]
call fcn.00439358
add esp, 4
push 0
push 1
mov esi, dword [esp + 0x2c]
push esi
call fcn.004392c8
add esp, 0xc
mov dword [ebp + 0x24], eax
push esi
push edi
push eax
call fcn.004a0b28
add esp, 0xc
mov dword [ebp + 0x28], esi
mov eax, ebx
mov dword [esp + 0x1c], eax
jmp 0x49c1f3
push dword [esp + 0x18]
call fcn.004af558
add esp, 4
push 0x8000c
mov esi, dword [esp + 0x18]
push esi
call fcn.00465e78
add esp, 8
push esi
call fcn.00439358
add esp, 4
push dword [esp + 4]
call fcn.00439358
add esp, 4
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0049e348
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret