Function at 0x4527b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 8], str._Id:_fbopens.cpp_7003_2011_05_16_16:32:53Z_jsturton___WORKNC
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax - 1]
mov dword [ebp - 8], edx
jmp 0x4527de
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
cmp eax, 0x20
jg 0x4527f5
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
test edx, edx
jl 0x4527f5
jmp 0x4527cc
cmp dword [ebp + 0x10], 0x200
jbe 0x45281a
mov eax, dword [ebp + 0x18]
mov dword [eax], 0xfffffff3
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
call fcn.00451f50
add esp, 4
jmp 0x453110
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x45282c
call fcn.004521c0
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jg 0x452842
mov eax, dword [ebp + 0x18]
mov dword [eax], 0xfffffff5
jmp 0x453110
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00451f70
add esp, 4
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov edx, dword [ebp + 0x18]
cmp dword [edx], 0
je 0x452862
jmp 0x453110
call fcn.00451f40
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x320]
and ecx, 1
je 0x452894
mov edx, dword [ebp + 0x18]
mov dword [edx], 0xfffffff2
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.00451f50
add esp, 4
jmp 0x453110
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x10
push ecx
call dword [sym.imp.MSVCR90.dll_strncpy]
add esp, 0xc
mov edx, dword [ebp - 0xc]
add edx, dword [ebp + 0x10]
mov byte [edx + 0x10], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
mov dl, byte [ecx]
mov byte [eax + 4], dl
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 4]
mov byte [ebp - 0x40], cl
cmp byte [ebp - 0x40], 1
je 0x4528e9
cmp byte [ebp - 0x40], 2
je 0x452bb0
cmp byte [ebp - 0x40], 3
je 0x452d77
jmp 0x4530e2
push 0x45e684
mov edx, dword [ebp - 0xc]
add edx, 0x10
push edx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0xc], 0
jne 0x452929
mov eax, dword [ebp + 0x18]
mov dword [eax], 0xffffffeb
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
call fcn.00451f50
add esp, 4
jmp 0x453110
mov eax, dword [ebp - 0xc]
push eax
call fcn.00453120
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x452969
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
call fcn.00451f50
add esp, 4
jmp 0x453110
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx + 0x2aa]
test edx, edx
jne 0x4529a3
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov edx, dword [ebp + 0x18]
mov dword [edx], 0xfffffff3
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.00451f50
add esp, 4
jmp 0x453110
push 0x45e687
mov edx, dword [ebp - 0xc]
add edx, 0x2d0
push edx
call sub.MSVCR90.dll_strcpy
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov word [ecx + 0x316], ax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x21c]
mov dword [edx + 0x2b0], ecx
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x2b4], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x2cc], 0
push 0x80
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x2c4], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x2c4], 0
jne 0x452a31
mov eax, dword [ebp + 0x18]
mov dword [eax], 0xffffffd7
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
call fcn.00451f50
add esp, 4
jmp 0x453110
mov eax, 0x80
mov ecx, dword [ebp - 0xc]
mov word [ecx + 0x314], ax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c4]
mov dword [edx + 0x2c8], ecx
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x318], 0x58
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov word [ecx + 0x31a], ax
xor edx, edx
mov eax, dword [ebp - 0xc]
mov word [eax + 0x31c], dx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
push 4
push 1
mov eax, dword [ebp - 0xc]
add eax, 0x2c0
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 4
je 0x452ad5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c4]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov edx, dword [ebp + 0x18]
mov dword [edx], 0xffffffe7
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.00451f50
add esp, 4
jmp 0x453110
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x320]
shr eax, 1
and eax, 1
je 0x452b43
mov ecx, dword [ebp - 0xc]
add ecx, 0x2c2
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x11], cl
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x18]
mov al, byte [ebp - 0x11]
mov byte [edx], al
mov ecx, dword [ebp - 0xc]
add ecx, 0x2c0
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax]
mov byte [ebp - 0x1d], cl
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x24]
mov al, byte [ebp - 0x1d]
mov byte [edx], al
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x2b0]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
xor edx, edx
mov eax, dword [ebp - 0xc]
mov word [eax + 0x2be], dx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov ax, word [edx + 0x2c2]
mov word [ecx + 0x2bc], ax
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x320]
and eax, 0xfffffffb
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x320], eax
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x2b8], 0
jmp 0x4530fb
push 0x45e688
mov eax, dword [ebp - 0xc]
add eax, 0x10
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0xc], 0
jne 0x452bf0
mov eax, dword [ebp + 0x18]
mov dword [eax], 0xffffffeb
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
call fcn.00451f50
add esp, 4
jmp 0x453110
push 0x45e68c
mov eax, dword [ebp - 0xc]
add eax, 0x2d0
push eax
call sub.MSVCR90.dll_strcpy
add esp, 8
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov word [edx + 0x316], cx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov word [ecx + 0x31c], ax
mov edx, dword [ebp - 0xc]
push edx
call fcn.004533e0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x452c5f
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov edx, dword [ebp + 0x18]
mov dword [edx], 0xffffffd7
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.00451f50
add esp, 4
jmp 0x453110
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x21c]
mov dword [edx + 0x2b0], ecx
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x2b4], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x2cc], 0
push 0x80
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x2c4], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x2c4], 0
jne 0x452cda
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov edx, dword [ebp + 0x18]
mov dword [edx], 0xffffffd7
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.00451f50
add esp, 4
jmp 0x453110
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x2c4]
add eax, 0x80
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x2c8], eax
mov edx, 0x80
mov eax, dword [ebp - 0xc]
mov word [eax + 0x314], dx
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x318], 0x58
xor edx, edx
mov eax, dword [ebp - 0xc]
mov word [eax + 0x31a], dx
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov word [edx + 0x2bc], cx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov word [ecx + 0x2be], ax
xor edx, edx
mov eax, dword [ebp - 0xc]
mov word [eax + 0x2c0], dx
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov word [edx + 0x2c2], cx
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x320]
and edx, 0xfffffffb
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x320], edx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x2b8], 1
jmp 0x4530fb
push 0x45e690
mov edx, dword [ebp - 0xc]
add edx, 0x10
push edx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0xc], 0
jne 0x452db7
mov eax, dword [ebp + 0x18]
mov dword [eax], 0xffffffeb
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
call fcn.00451f50
add esp, 4
jmp 0x453110
mov eax, dword [ebp - 0xc]
push eax
call fcn.00453120
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x452df7
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
call fcn.00451f50
add esp, 4
jmp 0x453110
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx + 0x2aa]
test edx, edx
jne 0x452e31
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov edx, dword [ebp + 0x18]
mov dword [edx], 0xfffffff3
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.00451f50
add esp, 4
jmp 0x453110
push 0x45e68d
mov edx, dword [ebp - 0xc]
add edx, 0x2d0
push edx
call sub.MSVCR90.dll_strcpy
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov word [ecx + 0x316], ax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x218]
mov dword [edx + 0x2b0], ecx
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x2b0]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x220]
mov dword [eax + 0x2b4], edx
push 0x80
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x2c4], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x2c4], 0
jne 0x452ee3
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov edx, dword [ebp + 0x18]
mov dword [edx], 0xffffffd7
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.00451f50
add esp, 4
jmp 0x453110
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x2cc], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c4]
add ecx, 0x80
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x2c8], ecx
mov eax, 0x80
mov ecx, dword [ebp - 0xc]
mov word [ecx + 0x314], ax
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x318], 0x58
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov word [ecx + 0x31a], ax
xor edx, edx
mov eax, dword [ebp - 0xc]
mov word [eax + 0x31c], dx
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x220], 0
je 0x453084
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
push eax
push 4
push 1
mov ecx, dword [ebp - 0xc]
add ecx, 0x2bc
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 4
je 0x452fab
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x2c4]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [ebp + 0x18]
mov dword [eax], 0xffffffe7
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
call fcn.00451f50
add esp, 4
jmp 0x453110
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x320]
shr ecx, 1
and ecx, 1
je 0x453019
mov edx, dword [ebp - 0xc]
add edx, 0x2be
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dl, byte [ecx]
mov byte [ebp - 0x29], dl
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x30]
mov cl, byte [ebp - 0x29]
mov byte [eax], cl
mov edx, dword [ebp - 0xc]
add edx, 0x2bc
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dl, byte [ecx]
mov byte [ebp - 0x35], dl
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x3c]
mov cl, byte [ebp - 0x35]
mov byte [eax], cl
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov cx, word [eax + 0x2bc]
mov word [edx + 0x2c2], cx
xor edx, edx
mov eax, dword [ebp - 0xc]
mov word [eax + 0x2c0], dx
mov ecx, dword [ebp - 0xc]
movsx edx, word [ecx + 0x2bc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2b0]
lea edx, [edx + ecx + 4]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x2b0], edx
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x2b0]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x2b8], 2
jmp 0x4530b4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov word [ecx + 0x2bc], ax
xor edx, edx
mov eax, dword [ebp - 0xc]
mov word [eax + 0x2be], dx
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov word [edx + 0x2c0], cx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov word [ecx + 0x2c2], ax
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x320]
and ecx, 0xfffffffb
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x320], ecx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x2b8], 0
jmp 0x4530fb
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0xfffffff3
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
call fcn.00451f50
add esp, 4
jmp 0x453110
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x320]
or edx, 1
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x320], edx
mov esp, ebp
pop ebp
ret 0x14