Function at 0x4031e0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421be8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x42c050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov bl, dl
mov esi, ecx
mov byte [ebp - 0x68], bl
mov ecx, dword [ebp - 0x68]
push ecx
mov ecx, esi
lea edi, [ebp - 0x64]
mov dword [ebp - 0x6c], eax
call fcn.00404790
mov edx, dword [ebp - 0x68]
push edx
mov ecx, esi
lea edi, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00404960
test bl, bl
sete al
movzx ecx, al
push ecx
mov ecx, esi
lea edi, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00404960
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
mov ebx, 8
cmp dword [ebp - 0x18], ebx
jae 0x403266
lea eax, [ebp - 0x2c]
mov edi, dword [sym.imp.MSVCR100.dll__wremove]
push eax
call edi
mov eax, dword [ebp - 0x48]
add esp, 4
cmp dword [ebp - 0x34], ebx
jae 0x40327d
lea eax, [ebp - 0x48]
push eax
call edi
mov ecx, dword [ebp - 0x2c]
add esp, 4
cmp dword [ebp - 0x18], ebx
jae 0x40328e
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], ebx
jae 0x403299
lea eax, [ebp - 0x64]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__wrename]
add esp, 8
test eax, eax
je 0x403301
cmp dword [ebp - 0x34], ebx
jb 0x4032ba
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edi, edi
xor eax, eax
mov esi, 7
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], ebx
jb 0x4032df
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x50], ebx
jb 0x4032fd
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
jmp 0x403380
mov edi, dword [ebp - 0x6c]
mov ecx, dword [edi + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, esi
mov ecx, edi
call fcn.00404ec0
mov dword [eax], 2
mov edx, dword [edi + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x34], ebx
jb 0x40333b
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edi, edi
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], ebx
jb 0x403360
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x50], ebx
jb 0x40337e
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d5b4
mov esp, ebp
pop ebp
ret 4