Function at 0x448970
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.004473e0
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x448996
jmp 0x448e13
call fcn.004473b0
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x320]
and edx, 1
jne 0x4489c8
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.004473c0
add esp, 4
jmp 0x448e13
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x2b4]
cmp edx, dword [ecx + 0x220]
jl 0x4489f8
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffe9
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.004473c0
add esp, 4
jmp 0x448e13
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x320]
shr ecx, 2
and ecx, 1
je 0x448a39
mov edx, dword [ebp - 4]
push edx
call fcn.00449730
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x448a39
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.004473c0
add esp, 4
jmp 0x448e13
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x2b8], 0
je 0x448a7a
mov edx, dword [ebp - 4]
cmp dword [edx + 0x2b8], 2
je 0x448a7a
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2b0]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2b8], 2
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x2aa]
test eax, eax
je 0x448cd5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
push 4
push 1
mov eax, dword [ebp - 4]
add eax, 0x2bc
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 4
je 0x448aca
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xffffffe7
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.004473c0
add esp, 4
jmp 0x448e13
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x320]
shr edx, 1
and edx, 1
je 0x448b36
mov eax, dword [ebp - 4]
add eax, 0x2be
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ebp - 0x11], al
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x18]
mov dl, byte [ebp - 0x11]
mov byte [ecx], dl
mov eax, dword [ebp - 4]
add eax, 0x2bc
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov al, byte [edx]
mov byte [ebp - 0x1d], al
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x24]
mov dl, byte [ebp - 0x1d]
mov byte [ecx], dl
mov eax, dword [ebp - 4]
mov cx, word [eax + 0x2bc]
mov word [ebp - 0xc], cx
movzx edx, word [ebp - 0xc]
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x314]
cmp edx, ecx
jle 0x448bb9
movzx edx, word [ebp - 0xc]
add edx, 4
push edx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x448b8c
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffd7
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.004473c0
add esp, 4
jmp 0x448e13
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c4]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
mov dword [edx + 0x2c4], eax
mov ecx, dword [ebp - 4]
mov dx, word [ebp - 0xc]
mov word [ecx + 0x314], dx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
movzx edx, word [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c4]
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
movzx edx, word [ebp - 0xc]
cmp eax, edx
je 0x448bfe
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffe7
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.004473c0
add esp, 4
jmp 0x448e13
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 0x2bc]
mov word [eax + 0x2c2], dx
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx + 0x2c0], ax
movzx edx, word [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2b0]
lea edx, [edx + ecx + 4]
mov eax, dword [ebp - 4]
mov dword [eax + 0x2b0], edx
mov ecx, dword [ebp - 4]
mov dx, word [ebp - 0xc]
mov word [ecx + 0x31c], dx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2c4]
mov dword [eax + 0x2c8], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 0x2ab]
test ecx, ecx
je 0x448cd0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x2d0
push ecx
call sub.MSVCR90.dll_strcpy
add esp, 8
mov edx, dword [ebp - 4]
add edx, 0x2d0
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
mov ecx, dword [ebp - 4]
mov word [ecx + 0x316], ax
mov edx, dword [ebp - 4]
add edx, 0x2d0
mov eax, dword [ebp - 4]
mov dword [eax + 0x310], edx
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x316]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c8]
lea edx, [edx + ecx + 1]
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c8], edx
jmp 0x448dd0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x2b4], 0xffffffff
jne 0x448d3f
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
push 0x80
push 1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2c4]
push edx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 0x80
je 0x448d25
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffe7
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.004473c0
add esp, 4
jmp 0x448e13
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2b0]
add ecx, 0x80
mov edx, dword [ebp - 4]
mov dword [edx + 0x2b0], ecx
jmp 0x448dac
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x31c]
push eax
push 1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2c4]
push edx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x31c]
cmp eax, edx
je 0x448d90
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffe7
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.004473c0
add esp, 4
jmp 0x448e13
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x31c]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x2b0]
mov eax, dword [ebp - 4]
mov dword [eax + 0x2b0], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c4]
mov dword [ecx + 0x2c8], eax
mov ecx, dword [ebp - 4]
add ecx, 0x2d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x310], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x2b8], 0
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x318], 0x58
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax + 0x31a], dx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2b4]
add edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x2b4], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret 8