Function at 0x49c500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0956
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4d2a20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x2c]
call fcn.00446c20
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
call fcn.0044e3f0
push 0x4ad754
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR80.dll_fopen
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x49c584
jmp 0x49c765
push 2
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call sub.MSVCR80.dll_fseek
add esp, 0xc
mov edx, dword [ebp - 0x30]
push edx
call sub.MSVCR80.dll_ftell
add esp, 4
mov dword [ebp - 0x38], eax
push 0
push 0
mov eax, dword [ebp - 0x30]
push eax
call sub.MSVCR80.dll_fseek
add esp, 0xc
cmp dword [ebp - 0x38], 0xc800
jle 0x49c5c1
jmp 0x49c765
push 0x4d6880
mov ecx, dword [ebp - 0x38]
add ecx, 1
push ecx
call fcn.004769d4
add esp, 8
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
jne 0x49c5e9
jmp 0x49c765
mov eax, dword [ebp - 0x38]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 1
mov ecx, dword [ebp - 0x18]
push ecx
call sub.MSVCR80.dll_fread
add esp, 0x10
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x60]
call fcn.00406abb
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
push 0xa
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0x84]
call fcn.0044e070
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00406b99
push 0x4d6880
push 0x2800
call fcn.004769d4
add esp, 8
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
jne 0x49c66b
jmp 0x49c765
push 0x2800
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00443db0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
jmp 0x49c69f
lea ecx, [ebp - 0x14]
call fcn.00447090
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00446e30
push eax
lea ecx, [ebp - 0x14]
call fcn.00447150
movzx edx, al
test edx, edx
je 0x49c75e
lea ecx, [ebp - 0x14]
call fcn.00447110
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00427b22
mov ecx, dword [ebp + 0x10]
call fcn.00435a77
movzx eax, al
test eax, eax
je 0x49c6e1
jmp 0x49c697
push 0x27ff
mov ecx, dword [ebp + 0x10]
call fcn.00406b11
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MSVCR80.dll_strncpy
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
movsx ecx, byte [eax]
cmp ecx, 0x20
je 0x49c717
mov edx, dword [ebp - 0x3c]
movsx eax, byte [edx]
cmp eax, 9
jne 0x49c722
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
jmp 0x49c701
mov edx, dword [ebp - 0x3c]
movsx eax, byte [edx]
cmp eax, 0x3b
je 0x49c759
push 0x3b
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0043dead
add esp, 8
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x49c74a
mov edx, dword [ebp - 0x40]
mov byte [edx], 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x84]
call fcn.0049c350
jmp 0x49c697
mov dword [ebp - 0x34], 1
cmp dword [ebp - 0x30], 0
je 0x49c77e
mov ecx, dword [ebp - 0x30]
push ecx
call sub.MSVCR80.dll_fclose
add esp, 4
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x18], 0
je 0x49c79d
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x1c], 0
je 0x49c7bc
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00446c50
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc