Function at 0x42c5b0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x481c78
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x49e128]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49e128]
xor eax, esp
push eax
lea eax, [esp + 0x490]
mov dword fs:[0], eax
mov edi, dword [esp + 0x4a0]
mov eax, dword [edi + 4]
cmp dword [eax - 0xc], 0
jl 0x42c60b
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42c61f
mov ecx, dword [0x49c024]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00405330
mov dword [esp + 0x498], 0
mov edx, dword [esp + 0x14]
cmp dword [edx - 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jne 0x42c6a5
lea eax, [edi + 0x38]
push eax
lea ecx, [esp + 0x18]
call fcn.00402640
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 8], 0
jne 0x42c6a5
mov eax, dword [edi + 8]
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.004180b0
add esp, 8
mov byte [esp + 0x498], 1
push eax
lea ecx, [esp + 0x18]
call fcn.00402640
mov byte [esp + 0x498], 0
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x49c020]
je 0x42c6a5
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x42c6a5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00460edd
add esp, 4
lea edx, [esp + 0x14]
push edx
call fcn.00439220
mov ebp, dword [0x49c024]
mov dword [esp + 0x20], ebp
mov byte [esp + 0x49c], 2
mov eax, dword [esp + 0x18]
push 0x2e
push eax
call fcn.0046246e
add esp, 0xc
test eax, eax
je 0x42c737
sub eax, dword [esp + 0x14]
sar eax, 1
test eax, eax
jle 0x42c737
add eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040d3b0
mov byte [esp + 0x498], 3
push eax
lea ecx, [esp + 0x20]
call fcn.00402640
mov byte [esp + 0x498], 2
mov eax, dword [esp + 0x18]
lea edx, [eax - 0xc]
cmp edx, dword [0x49c020]
je 0x42c733
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x42c733
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00460edd
add esp, 4
mov ebp, dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [esp + 0x14]
push esi
push str.All_Files__._
push 6
push eax
push ebp
push 0
lea ecx, [esp + 0x40]
call fcn.0042b340
cmp dword [esp + 0x2c], 0
jne 0x42c763
mov dword [esp + 0x2c], esi
cmp dword [esp + 0x80], 0
je 0x42c77a
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
jmp 0x42c785
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
test eax, eax
je 0x42c9ec
lea eax, [esp + 0x284]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040d2a0
mov byte [esp + 0x498], 4
mov ebp, dword [esp + 0x18]
push 0x5c
push ebp
call fcn.0046246e
add esp, 8
test eax, eax
je 0x42c9aa
sub eax, ebp
sar eax, 1
test eax, eax
jle 0x42c9aa
lea esi, [eax + 1]
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.0041d430
mov byte [esp + 0x498], 5
push eax
mov ecx, edi
call fcn.00402640
mov byte [esp + 0x498], 4
mov eax, dword [esp + 0x20]
lea edx, [eax - 0xc]
cmp edx, dword [0x49c020]
je 0x42c81c
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x42c81c
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.00460edd
add esp, 4
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
call fcn.0040d3b0
mov byte [esp + 0x498], 6
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0042b810
test al, al
je 0x42c84c
mov byte [edi + 0x44], 0
jmp 0x42c859
mov eax, dword [edi + 4]
cmp dword [eax - 8], 0
jne 0x42c859
mov byte [edi + 0x44], 1
lea ecx, [esp + 0x24]
push ecx
lea esi, [edi + 4]
mov ecx, esi
call fcn.00402640
push esi
call fcn.00439220
add esp, 4
push esi
push edi
lea edx, [esp + 0x28]
push edx
call fcn.004167b0
mov byte [esp + 0x498], 7
push eax
lea ecx, [esp + 0x18]
call fcn.00402640
mov byte [esp + 0x498], 6
mov eax, dword [esp + 0x20]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x49c020]
je 0x42c8c0
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x42c8c0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.00460edd
add esp, 4
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edx
call esi
push str..pr_
push str..pr_
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404920
mov eax, dword [esp + 0x14]
push eax
call esi
mov byte [esp + 0x498], 4
mov eax, dword [esp + 0x24]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x49c020]
je 0x42c91f
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x42c91f
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.00460edd
add esp, 4
mov byte [esp + 0x498], 2
lea edx, [ebp - 0xc]
cmp edx, dword [0x49c020]
je 0x42c945
lea esi, [ebp - 0xc]
push esi
call ebx
test eax, eax
jg 0x42c945
push esi
call fcn.00460edd
add esp, 4
mov byte [esp + 0x498], 0
mov esi, dword [esp + 0x1c]
lea eax, [esi - 0xc]
cmp eax, dword [0x49c020]
je 0x42c96f
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x42c96f
push esi
call fcn.00460edd
add esp, 4
mov dword [esp + 0x498], 0xffffffff
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x49c020]
je 0x42c9a3
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x42c9a3
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00460edd
add esp, 4
mov al, 1
jmp 0x42ca48
mov byte [esp + 0x498], 2
lea eax, [ebp - 0xc]
cmp eax, dword [0x49c020]
je 0x42c9d0
lea esi, [ebp - 0xc]
push esi
call ebx
test eax, eax
jg 0x42c9d0
push esi
call fcn.00460edd
add esp, 4
mov byte [esp + 0x498], 0
mov esi, dword [esp + 0x1c]
lea ecx, [esi - 0xc]
cmp ecx, dword [0x49c020]
je 0x42ca12
add esi, 0xfffffff4
jmp 0x42ca02
mov byte [esp + 0x498], 0
lea ecx, [ebp - 0xc]
cmp ecx, dword [0x49c020]
je 0x42ca12
lea esi, [ebp - 0xc]
push esi
call ebx
test eax, eax
jg 0x42ca12
push esi
call fcn.00460edd
add esp, 4
mov dword [esp + 0x498], 0xffffffff
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
cmp edx, dword [0x49c020]
je 0x42ca46
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x42ca46
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00460edd
add esp, 4
xor al, al
mov ecx, dword [esp + 0x490]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.00460e4b
add esp, 0x488
ret