Function at 0x4535a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1414c
call fcn.00458c80
mov eax, dword [0x46946c]
xor eax, esp
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_fopen]
push ebp
push esi
mov dword [esp + 0x14154], eax
mov eax, dword [esp + 0x14160]
push edi
mov edi, dword [esp + 0x14160]
mov esi, ecx
mov dword [esp + 0x14], eax
lea eax, [esi + 0xc]
push 0x462e84
push eax
call ebx
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x453609
push 0x462e70
push edi
call ebx
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x453610
push ebp
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
xor al, al
jmp 0x453ad9
mov byte [esp + 0x54], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x55]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.Rav.tst
lea ecx, [esp + 0x58]
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ecx
call edi
lea eax, [esi + 0x138]
push 0x5c
push eax
call dword [sym.imp.MSVCR71.dll_strrchr]
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x45365a
inc eax
je 0x45365a
push eax
lea edx, [esp + 0x58]
push edx
call edi
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x453666
lea eax, [esp + 0x54]
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x453670
sub eax, ecx
mov ecx, dword [esi + 0x2c0]
push 0
lea edx, [ecx + eax + 0x1e]
push edx
push ebp
call dword [sym.imp.MSVCR71.dll_fseek]
push 0x38
push str.1.1.3
xor eax, eax
push eax
push 8
push 0xfffffffffffffff1
mov ecx, 0xe
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
push 8
lea eax, [esp + 0x40]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x6c], 0x453590
mov dword [esp + 0x68], 0x4588a0
call fcn.00456690
mov al, byte [ebx + 0xc]
mov ebx, dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x2c
test al, 0x10
jne 0x4537ba
mov ecx, dword [esp + 0x10]
push ecx
push 0xa000
lea edx, [esp + 0xa160]
push 1
push edx
call dword [sym.imp.MSVCR71.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4537ba
mov ecx, dword [esp + 0x18]
push edi
lea eax, [esp + 0xa15c]
push eax
push ecx
call fcn.00456bb0
mov dword [esp + 0x24], eax
add esp, 0xc
test edi, edi
lea edx, [esp + 0xa158]
lea eax, [esp + 0x158]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0xa000
jbe 0x45378e
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x453777
push ebp
push 1
lea ecx, [esp + 0x160]
push 0xa000
push ecx
call ebx
lea edx, [esp + 0x168]
add esp, 0x10
mov dword [esp + 0x2c], 0xa000
mov dword [esp + 0x28], edx
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00454e90
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
ja 0x453747
mov ecx, dword [esp + 0x2c]
mov eax, 0xa000
sub eax, ecx
je 0x4537ac
push ebp
push 1
push eax
lea ecx, [esp + 0x164]
push ecx
call ebx
add esp, 0x10
mov edx, dword [esp + 0x10]
test byte [edx + 0xc], 0x10
je 0x4536e0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
lea ecx, [esp + 0x15c]
mov edi, 0xa000
add esp, 4
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edi
lea esp, [esp]
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x453808
push ebp
push 1
lea edx, [esp + 0x160]
push edi
push edx
call ebx
lea eax, [esp + 0x168]
add esp, 0x10
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x1c]
push 4
push ecx
call fcn.00454e90
add esp, 8
test eax, eax
je 0x4537e0
mov ecx, dword [esp + 0x2c]
mov eax, edi
sub eax, ecx
je 0x453836
push ebp
push 1
push eax
lea edx, [esp + 0x164]
push edx
call ebx
add esp, 0x10
push ebp
call dword [sym.imp.MSVCR71.dll_ftell]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x1c]
xor eax, eax
lea edi, [esi + 0x264]
mov ecx, edi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov word [ecx + 0x1c], ax
mov ecx, dword [esp + 0x34]
mov word [esi + 0x26a], ax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x27a], eax
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
mov dword [esi + 0x272], edx
mov dword [edi], 0x4034b50
mov dword [esi + 0x276], ecx
je 0x4538a9
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4538a0
jmp 0x4538b7
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4538b0
sub eax, edx
mov edx, dword [esi + 0x2c0]
push 0
push edx
push ebp
mov word [esi + 0x27e], ax
mov word [esi + 0x26c], 8
mov word [esi + 0x268], 0x14
call dword [sym.imp.MSVCR71.dll_fseek]
push ebp
push 1
push 0x1e
push edi
call ebx
mov edi, dword [esp + 0x30]
add esp, 0x1c
test edi, edi
je 0x453910
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x453900
push ebp
push 1
sub eax, edx
push eax
push edi
jmp 0x45392b
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x453917
push ebp
sub eax, edx
push 1
push eax
lea eax, [esi + 0x138]
push eax
call ebx
mov eax, dword [esp + 0x20]
add esp, 0x10
push 0
push eax
push ebp
call dword [sym.imp.MSVCR71.dll_fseek]
mov ecx, dword [esi + 0x2bc]
mov edx, dword [esi + 0x2d4]
push ebp
push 1
push ecx
push edx
call ebx
mov eax, dword [esi + 0x2d4]
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
xor eax, eax
lea edx, [esi + 0x282]
mov dword [esi + 0x2d4], 0
mov ecx, 0xb
mov edi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [esi + 0x26c]
mov eax, 0x14
mov word [esi + 0x286], ax
mov word [esi + 0x288], ax
mov eax, dword [esi + 0x272]
mov dword [esi + 0x292], eax
mov eax, dword [esi + 0x27a]
mov dword [esi + 0x29a], eax
mov eax, dword [esp + 0x34]
mov word [esi + 0x28c], cx
mov ecx, dword [esi + 0x276]
add esp, 0x20
test eax, eax
mov dword [edx], 0x2014b50
mov dword [esi + 0x296], ecx
je 0x4539dc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4539d3
jmp 0x4539ea
lea eax, [esp + 0x54]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4539e3
mov ecx, dword [esi + 0x2c0]
push ebp
push 1
sub eax, edi
push 0x2e
push edx
mov word [esi + 0x29e], ax
mov dword [esi + 0x2ac], ecx
call ebx
mov edi, dword [esp + 0x24]
add esp, 0x10
test edi, edi
je 0x453a27
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x453a17
push ebp
push 1
sub eax, edx
push eax
push edi
jmp 0x453a42
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x453a30
push ebp
sub eax, edx
push 1
push eax
lea edx, [esp + 0x60]
push edx
call ebx
mov ecx, dword [esi + 0x2bc]
mov eax, dword [esp + 0x20]
add esp, 0x10
inc word [esi + 0x2b8]
inc word [esi + 0x2ba]
add ecx, 0x2e
test edi, edi
mov dword [esi + 0x2c0], eax
mov dword [esi + 0x2bc], ecx
mov edx, ecx
je 0x453a89
mov eax, edi
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x453a80
jmp 0x453a97
lea eax, [esp + 0x54]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x453a90
push ebp
push 1
sub eax, edi
lea ecx, [esi + 0x2b0]
add edx, eax
push 0x16
push ecx
mov dword [esi + 0x2bc], edx
mov word [esi + 0x2c4], 0
call ebx
lea edx, [esp + 0x2c]
push edx
call fcn.00455700
push ebp
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 0x18
lea eax, [esi + 0xc]
push eax
mov ecx, esi
call fcn.004534c0
mov al, 1
mov ecx, dword [esp + 0x14158]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00458c53
add esp, 0x1414c
ret 8