Function at 0x44e950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
cmp dword [ebp + 0xc], 0
je 0x44e96f
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR100.dll_strlen
add esp, 4
cmp eax, 0x200
jb 0x44e983
push 0xfffffffffffffff3
call fcn.0041ad40
add esp, 4
mov eax, 0xfffffff3
jmp 0x44f1b0
cmp dword [ebp + 8], 0
jg 0x44e993
mov eax, 0xfffffff5
jmp 0x44f1b0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041ad80
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x44e9b0
mov eax, dword [ebp - 8]
jmp 0x44f1b0
call fcn.0041ad20
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x320]
and eax, 1
je 0x44e9da
push 0xfffffffffffffff2
call fcn.0041ad40
add esp, 4
mov eax, 0xfffffff2
jmp 0x44f1b0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x10
push edx
call sub.MSVCR100.dll_strcpy
add esp, 8
mov eax, dword [ebp - 4]
mov cl, byte [ebp + 0x10]
mov byte [eax + 4], cl
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 1
je 0x44ea1b
cmp dword [ebp - 0x3c], 2
je 0x44ecae
cmp dword [ebp - 0x3c], 3
je 0x44ee51
jmp 0x44f188
push 0x461c8c
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
jne 0x44ea53
push 0xffffffffffffffeb
call fcn.0041ad40
add esp, 4
mov eax, 0xffffffeb
jmp 0x44f1b0
mov eax, dword [ebp - 4]
push eax
call fcn.0044f1c0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x44ea8c
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.0041ad40
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x44f1b0
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x2aa]
test edx, edx
jne 0x44eabe
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
push 0xfffffffffffffff3
call fcn.0041ad40
add esp, 4
mov eax, 0xfffffff3
jmp 0x44f1b0
mov edx, dword [ebp - 4]
mov byte [edx + 0x2d0], 0
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx + 0x316], ax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x21c]
mov dword [edx + 0x2b0], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x2b4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x2cc], 0
push 0x80
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x2c4], 0
jne 0x44eb37
push 0xffffffffffffffd7
call fcn.0041ad40
add esp, 4
mov eax, 0xffffffd7
jmp 0x44f1b0
mov eax, 0x80
mov ecx, dword [ebp - 4]
mov word [ecx + 0x314], ax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c4]
mov dword [edx + 0x2c8], ecx
mov edx, dword [ebp - 4]
mov byte [edx + 0x318], 0x58
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx + 0x31a], ax
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax + 0x31c], dx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
push 4
push 1
mov eax, dword [ebp - 4]
add eax, 0x2c0
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 4
je 0x44ebd3
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c4]
push ecx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push 0xffffffffffffffe7
call fcn.0041ad40
add esp, 4
mov eax, 0xffffffe7
jmp 0x44f1b0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x320]
shr eax, 1
and eax, 1
je 0x44ec41
mov ecx, dword [ebp - 4]
add ecx, 0x2c2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 0xd], cl
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x14]
mov al, byte [ebp - 0xd]
mov byte [edx], al
mov ecx, dword [ebp - 4]
add ecx, 0x2c0
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov cl, byte [eax]
mov byte [ebp - 0x19], cl
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x20]
mov al, byte [ebp - 0x19]
mov byte [edx], al
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2b0]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax + 0x2be], dx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov ax, word [edx + 0x2c2]
mov word [ecx + 0x2bc], ax
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x320]
and eax, 0xfffffffb
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x320], eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x2b8], 0
jmp 0x44f199
push 0x461c90
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
jne 0x44ece6
push 0xffffffffffffffeb
call fcn.0041ad40
add esp, 4
mov eax, 0xffffffeb
jmp 0x44f1b0
mov eax, dword [ebp - 4]
mov byte [eax + 0x2d0], 0
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx + 0x316], cx
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx + 0x31c], ax
mov edx, dword [ebp - 4]
push edx
call fcn.0044f490
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x44ed41
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
push 0xffffffffffffffd7
call fcn.0041ad40
add esp, 4
mov eax, 0xffffffd7
jmp 0x44f1b0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x21c]
mov dword [edx + 0x2b0], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x2b4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x2cc], 0
push 0x80
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x2c4], 0
jne 0x44edb4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
push 0xffffffffffffffd7
call fcn.0041ad40
add esp, 4
mov eax, 0xffffffd7
jmp 0x44f1b0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c4]
add eax, 0x80
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c8], eax
mov edx, 0x80
mov eax, dword [ebp - 4]
mov word [eax + 0x314], dx
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x318], 0x58
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax + 0x31a], dx
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx + 0x2bc], cx
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx + 0x2be], ax
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax + 0x2c0], dx
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx + 0x2c2], cx
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x320]
and edx, 0xfffffffb
mov eax, dword [ebp - 4]
mov dword [eax + 0x320], edx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2b8], 1
jmp 0x44f199
push 0x461c94
mov edx, dword [ebp - 4]
add edx, 0x10
push edx
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
jne 0x44ee89
push 0xffffffffffffffeb
call fcn.0041ad40
add esp, 4
mov eax, 0xffffffeb
jmp 0x44f1b0
mov eax, dword [ebp - 4]
push eax
call fcn.0044f1c0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x44eec2
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.0041ad40
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x44f1b0
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x2aa]
test edx, edx
jne 0x44eef4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
push 0xfffffffffffffff3
call fcn.0041ad40
add esp, 4
mov eax, 0xfffffff3
jmp 0x44f1b0
mov edx, dword [ebp - 4]
mov byte [edx + 0x2d0], 0
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx + 0x316], ax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x218]
mov dword [edx + 0x2b0], ecx
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2b0]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x220]
mov dword [eax + 0x2b4], edx
push 0x80
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x2c4], 0
jne 0x44ef91
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
push 0xffffffffffffffd7
call fcn.0041ad40
add esp, 4
mov eax, 0xffffffd7
jmp 0x44f1b0
mov edx, dword [ebp - 4]
mov dword [edx + 0x2cc], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c4]
add ecx, 0x80
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c8], ecx
mov eax, 0x80
mov ecx, dword [ebp - 4]
mov word [ecx + 0x314], ax
mov edx, dword [ebp - 4]
mov byte [edx + 0x318], 0x58
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx + 0x31a], ax
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax + 0x31c], dx
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x220], 0
je 0x44f12a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
push 4
push 1
mov ecx, dword [ebp - 4]
add ecx, 0x2bc
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 4
je 0x44f051
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2c4]
push edx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push 0xffffffffffffffe7
call fcn.0041ad40
add esp, 4
mov eax, 0xffffffe7
jmp 0x44f1b0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x320]
shr ecx, 1
and ecx, 1
je 0x44f0bf
mov edx, dword [ebp - 4]
add edx, 0x2be
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dl, byte [ecx]
mov byte [ebp - 0x25], dl
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x2c]
mov cl, byte [ebp - 0x25]
mov byte [eax], cl
mov edx, dword [ebp - 4]
add edx, 0x2bc
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dl, byte [ecx]
mov byte [ebp - 0x31], dl
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x31]
mov byte [eax], cl
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov cx, word [eax + 0x2bc]
mov word [edx + 0x2c2], cx
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax + 0x2c0], dx
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x2bc]
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
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2b0]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [edx + 0x2b8], 2
jmp 0x44f15a
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx + 0x2bc], ax
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax + 0x2be], dx
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx + 0x2c0], cx
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx + 0x2c2], ax
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x320]
and ecx, 0xfffffffb
mov edx, dword [ebp - 4]
mov dword [edx + 0x320], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x2b8], 0
jmp 0x44f199
push 0xfffffffffffffff3
call fcn.0041ad40
add esp, 4
mov eax, 0xfffffff3
jmp 0x44f1b0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x320]
or edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x320], edx
xor eax, eax
mov esp, ebp
pop ebp
ret