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

Disassembly:
push ebp
lea ebp, [esp - 0x140d0]
mov eax, 0x14150
call fcn.0042e6d0
mov eax, dword [0x46a470]
xor eax, ebp
mov dword [ebp + 0x140cc], eax
mov eax, dword [ebp + 0x140d8]
push ebx
push esi
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x140dc]
push edi
mov esi, ecx
mov dword [ebp - 0x3c], eax
lea eax, [esi + 0xc]
push 0x45e9a0
push eax
call fcn.0042ac8a
mov ebx, eax
xor edi, edi
pop ecx
pop ecx
cmp ebx, edi
jne 0x41bedc
xor al, al
jmp 0x41c2f0
push 0x45e98c
push dword [ebp - 0x44]
call fcn.0042ac8a
pop ecx
pop ecx
mov dword [ebp - 0x40], eax
cmp eax, edi
jne 0x41befb
push ebx
call fcn.0042a9b7
pop ecx
jmp 0x41bed5
push 0x103
lea eax, [ebp + 0x13fc9]
push edi
push eax
mov byte [ebp + 0x13fc8], 0
call fcn.00429d40
add esp, 0xc
push str.Rav.tst
lea eax, [ebp + 0x13fc8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi + 0x138]
push 0x5c
push eax
call fcn.004313e0
cmp byte [eax], 0
pop ecx
pop ecx
je 0x41bf4f
inc eax
je 0x41bf4f
push eax
lea eax, [ebp + 0x13fc8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x3c]
cmp eax, edi
jne 0x41bf5c
lea eax, [ebp + 0x13fc8]
push edi
push eax
call fcn.00428940
pop ecx
mov ecx, dword [esi + 0x2c0]
lea eax, [eax + ecx + 0x1e]
push eax
push ebx
call fcn.0043099a
push 0x38
lea eax, [ebp - 0x80]
push edi
push eax
mov dword [ebp - 0x44], edi
call fcn.00429d40
push 0x38
push 0x45e990
push edi
push 8
push 0xfffffffffffffff1
push 8
lea eax, [ebp - 0x80]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x5c], 0x41ba7d
mov dword [ebp - 0x60], 0x41ba6c
call fcn.004558e0
push dword [ebp - 0x40]
call fcn.0043140d
add esp, 0x3c
mov edi, 0xa000
jmp 0x41c064
push dword [ebp - 0x40]
lea eax, [ebp + 0x9fc8]
push edi
push 1
push eax
call fcn.004311af
add esp, 0x10
mov dword [ebp - 0x48], eax
test eax, eax
je 0x41c06c
push eax
lea eax, [ebp + 0x9fc8]
push eax
push dword [ebp - 0x44]
call fcn.00456f80
mov dword [ebp - 0x44], eax
lea eax, [ebp + 0x9fc8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x48]
add esp, 0xc
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], edi
test eax, eax
jbe 0x41c044
cmp dword [ebp - 0x70], 0
jne 0x41c031
push ebx
push 1
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.00430820
lea eax, [ebp - 0x38]
add esp, 0x10
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00455d30
cmp dword [ebp - 0x7c], 0
pop ecx
pop ecx
ja 0x41c012
mov eax, edi
sub eax, dword [ebp - 0x70]
je 0x41c05b
push ebx
push 1
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00430820
add esp, 0x10
push dword [ebp - 0x40]
call fcn.0043140d
pop ecx
test eax, eax
je 0x41bfc0
push dword [ebp - 0x40]
call fcn.0042a9b7
lea eax, [ebp - 0x38]
pop ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], edi
cmp dword [ebp - 0x70], 0
jne 0x41c09d
push ebx
push 1
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.00430820
lea eax, [ebp - 0x38]
add esp, 0x10
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x80]
push 4
push eax
call fcn.00455d30
pop ecx
pop ecx
test eax, eax
je 0x41c07e
sub edi, dword [ebp - 0x70]
je 0x41c0c3
push ebx
push 1
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.00430820
add esp, 0x10
push ebx
call fcn.00431369
push 0x1e
lea edi, [esi + 0x264]
push 0
push edi
mov dword [ebp - 0x40], eax
call fcn.00429d40
xor eax, eax
mov word [esi + 0x26a], ax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x272], eax
mov eax, dword [ebp - 0x78]
mov dword [esi + 0x27a], eax
mov eax, dword [ebp - 0x6c]
add esp, 0x10
cmp dword [ebp - 0x3c], 0
mov dword [edi], 0x4034b50
mov dword [esi + 0x276], eax
je 0x41c114
push dword [ebp - 0x3c]
jmp 0x41c11b
lea eax, [ebp + 0x13fc8]
push eax
call fcn.00428940
pop ecx
push 8
mov word [esi + 0x27e], ax
pop eax
push 0x14
mov word [esi + 0x26c], ax
pop eax
push 0
push dword [esi + 0x2c0]
mov word [esi + 0x268], ax
push ebx
call fcn.0043099a
push ebx
push 1
push 0x1e
push edi
call fcn.00430820
add esp, 0x1c
cmp dword [ebp - 0x3c], 0
push ebx
push 1
je 0x41c170
push dword [ebp - 0x3c]
call fcn.00428940
pop ecx
push eax
push dword [ebp - 0x3c]
jmp 0x41c185
lea eax, [ebp + 0x13fc8]
push eax
call fcn.00428940
pop ecx
push eax
lea eax, [esi + 0x138]
push eax
call fcn.00430820
add esp, 0x10
push 0
push dword [ebp - 0x40]
push ebx
call fcn.0043099a
push ebx
push 1
push dword [esi + 0x2bc]
lea edi, [esi + 0x2d4]
push dword [edi]
call fcn.00430820
push dword [edi]
call fcn.0042892c
and dword [edi], 0
push 0x2e
lea edi, [esi + 0x282]
push 0
push edi
call fcn.00429d40
add esp, 0x2c
cmp dword [ebp - 0x3c], 0
push 0x14
pop eax
mov word [esi + 0x286], ax
mov word [esi + 0x288], ax
mov ax, word [esi + 0x26c]
mov word [esi + 0x28c], ax
mov eax, dword [esi + 0x272]
mov dword [esi + 0x292], eax
mov eax, dword [esi + 0x276]
mov dword [esi + 0x296], eax
mov eax, dword [esi + 0x27a]
mov dword [edi], 0x2014b50
mov dword [esi + 0x29a], eax
je 0x41c21f
push dword [ebp - 0x3c]
jmp 0x41c226
lea eax, [ebp + 0x13fc8]
push eax
call fcn.00428940
pop ecx
push ebx
push 1
mov word [esi + 0x29e], ax
mov eax, dword [esi + 0x2c0]
push 0x2e
push edi
mov dword [esi + 0x2ac], eax
call fcn.00430820
mov edi, dword [ebp - 0x3c]
add esp, 0x10
push ebx
push 1
test edi, edi
je 0x41c262
push edi
call fcn.00428940
pop ecx
push eax
push edi
jmp 0x41c277
lea eax, [ebp + 0x13fc8]
push eax
call fcn.00428940
pop ecx
push eax
lea eax, [ebp + 0x13fc8]
push eax
call fcn.00430820
mov eax, dword [ebp - 0x40]
add dword [esi + 0x2bc], 0x2e
add esp, 0x10
inc word [esi + 0x2b8]
inc word [esi + 0x2ba]
mov dword [esi + 0x2c0], eax
test edi, edi
je 0x41c2a4
push edi
jmp 0x41c2ab
lea eax, [ebp + 0x13fc8]
push eax
call fcn.00428940
add dword [esi + 0x2bc], eax
pop ecx
push ebx
xor eax, eax
push 1
mov word [esi + 0x2c4], ax
lea eax, [esi + 0x2b0]
push 0x16
push eax
call fcn.00430820
lea eax, [ebp - 0x80]
push eax
call fcn.00456090
push ebx
call fcn.0042a9b7
add esp, 0x18
lea eax, [esi + 0xc]
push eax
mov ecx, esi
call fcn.0041b9c6
mov al, 1
mov ecx, dword [ebp + 0x140cc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429649
add ebp, 0x140d0
leave
ret 8