Function at 0x49b000
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x547d2b
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
mov ebx, ecx
mov edx, dword [ebx + 4]
test edx, edx
jne 0x49b03f
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
add esp, 0x240
ret 4
push esi
push edi
mov edi, dword [esp + 0x250]
test edi, edi
je 0x49b324
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49b055
sub eax, esi
mov dword [esp + 0x10], eax
je 0x49b324
push ebp
push edx
call dword [sym.imp.MSVCR71.dll_ftell]
mov ebp, dword [sym.imp.MSVCR71.dll_fseek]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x10]
add esp, 4
test eax, eax
je 0x49b09e
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x118]
mov ecx, dword [ebx + 4]
push 0
push eax
push ecx
call ebp
add esp, 0xc
lea eax, [esp + 0x140]
mov edx, edi
mov ecx, eax
mov esi, 0x104
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x49b0bf
mov byte [eax], cl
inc eax
dec esi
jne 0x49b0b0
jmp 0x49b0c3
test esi, esi
jne 0x49b0c4
dec eax
mov byte [eax], 0
cmp byte [esp + 0x140], 0x2f
jne 0x49b107
mov edx, dword [ebx + 4]
push 0
push 0x15
push edx
call ebp
lea eax, [ebx + 0x13c]
mov edx, 0x5d3c5c
add esp, 0xc
mov esi, 0x104
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x49b0ff
mov byte [eax], cl
inc eax
dec esi
jne 0x49b0f0
jmp 0x49b103
test esi, esi
jne 0x49b104
dec eax
mov byte [eax], 0
lea ecx, [esp + 0x18]
call fcn.0049aa30
mov edi, dword [sym.imp.MSVCR71.dll_strtok]
lea eax, [esp + 0x140]
push 0x5e0c18
push eax
mov dword [esp + 0x254], 0
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x49b182
lea esp, [esp]
lea ecx, [esp + 0x18]
push ecx
push esi
mov ecx, ebx
call fcn.0049a930
test eax, eax
push 0
je 0x49b2f6
mov edx, dword [esp + 0x12c]
mov eax, dword [ebx + 4]
push edx
push eax
call ebp
add esp, 0xc
push esi
mov ecx, ebx
call fcn.0049ac80
push 0x5e0c18
push 0
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x49b140
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
cmp esi, eax
je 0x49b1a4
jmp 0x49b190
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x49b19d
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [esi]
cmp esi, dword [ebx + 0xc]
jne 0x49b190
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [ebx + 0xc]
mov dword [ecx + 4], ecx
cmp eax, dword [ebx + 0xc]
mov dword [ebx + 0x10], 0
je 0x49b1d4
lea ecx, [ecx]
mov esi, dword [eax]
push eax
call sub.MFC71.DLL_operator_delete_1
mov ecx, dword [ebx + 0xc]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x49b1c0
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.MSVCR71.dll_ftell]
xor esi, esi
add esp, 4
cmp eax, esi
mov dword [esp + 0x10], eax
mov edi, eax
je 0x49b2af
push 0x128
call sub.MFC71.DLL_operator_new_1
add esp, 4
cmp eax, esi
je 0x49b231
mov dword [eax], 0x5e0bfc
lea ecx, [eax + 4]
mov edx, 0x114
mov byte [ecx], 0
inc ecx
dec edx
jne 0x49b210
mov dword [eax + 0x118], esi
mov dword [eax + 0x11c], esi
mov dword [eax + 0x120], esi
mov dword [eax + 0x124], esi
mov esi, eax
mov edx, dword [ebx + 4]
push edx
push 1
lea eax, [esi + 4]
push 0x114
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.MSVCR71.dll_fread]
mov ecx, dword [esi + 0x114]
mov edx, dword [ebx + 4]
push 0
push ecx
push edx
call ebp
mov dword [esi + 0x118], edi
add esp, 0x1c
mov dword [esi + 0x124], 0
mov edi, dword [ebx + 0xc]
mov edx, dword [edi + 4]
lea ecx, [ebx + 8]
lea eax, [esp + 0x14]
push eax
push edx
push edi
call fcn.004a9d30
push 1
lea ecx, [ebx + 8]
mov ebp, eax
call fcn.0049abe0
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
mov edi, dword [esi + 0x114]
mov ebp, dword [sym.imp.MSVCR71.dll_fseek]
xor esi, esi
test edi, edi
jne 0x49b1f1
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 4]
push esi
push eax
push ecx
call ebp
mov eax, dword [esp + 0x140]
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x18], 0x5e0bfc
je 0x49b2d6
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x240]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x240
ret 4
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 4]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x140]
add esp, 0xc
test eax, eax
mov dword [esp + 0x18], 0x5e0bfc
je 0x49b320
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
xor eax, eax
jmp 0x49b2db
mov eax, 1
jmp 0x49b2dc