Function at 0x40508c
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebx]
mov edi, 0x401a8c
push dword [esi]
push 0x401a4c
push edi
push 2
call fcn.0041956b
add esp, 0x14
push dword [esi]
lea ecx, [ebp - 0x238]
call fcn.00403800
push dword [ebx]
lea ecx, [ebp - 0x230]
call fcn.00403800
xor eax, eax
push ebx
push esi
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x220], eax
call fcn.0040452c
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x210], eax
jge 0x40512b
push 0x16a
push 0x4013c8
push eax
push 0x40139c
push edi
push 1
call fcn.0041956b
add esp, 0x18
jmp 0x40551d
lea eax, [ebp - 0x220]
push eax
push 0x401370
push 0x17
push ebx
push 0x401a3c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
mov dword [ebp - 0x210], eax
jge 0x405156
push 0x16d
jmp 0x405110
cmp dword [0x41e46c], ebx
jne 0x40525d
cmp dword [0x41e468], ebx
je 0x4051c5
lea eax, [ebp - 0x21c]
push eax
push 0x401360
push 0x17
push ebx
push 0x403180
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
mov dword [ebp - 0x210], eax
jge 0x405198
push 0x176
jmp 0x405110
push esi
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esp
push eax
call fcn.0040388f
call fcn.0040493c
cmp eax, ebx
mov dword [ebp - 0x210], eax
jge 0x40525d
push 0x179
jmp 0x405110
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.004067f0
add esp, 0xc
push ebx
push 0x3c
push dword [esi]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCompactPathExW]
push 0x41e4ec
lea ecx, [ebp - 0x214]
call fcn.00403a61
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push 4
push eax
call fcn.00404342
add esp, 0xc
push 0x401a38
lea ecx, [ebp - 0x214]
call fcn.0040402d
mov esi, dword [ebp - 0x214]
push ebx
lea ecx, [ebp - 0x22c]
push ecx
mov dword [ebp - 0x22c], ebx
mov eax, dword [esi - 0xc]
push eax
push esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
lea ecx, [esi - 0x10]
call fcn.00403747
push dword [ebp - 0x230]
mov eax, dword [ebp - 0x220]
push dword [ebp - 0x238]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
mov dword [ebp - 0x210], eax
jge 0x405289
push 0x18d
jmp 0x405110
mov ax, word [0x41e470]
mov esi, dword [ebp - 0x220]
xor edx, edx
cmp ax, bx
sete dl
movzx eax, ax
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x224], ebx
mov ecx, dword [esi]
push edx
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
call dword [ecx + 0x10]
cmp eax, ebx
mov dword [ebp - 0x210], eax
jge 0x4052d6
push 0x194
jmp 0x405110
mov dword [ebp - 0x228], ebx
cmp dword [ebp - 0x224], ebx
jbe 0x40538a
mov esi, dword [ebp - 0x228]
mov eax, dword [ebp - 0x214]
add esi, esi
movzx eax, word [esi + eax]
push eax
push 0x4019fc
push edi
push 2
call fcn.0041956b
add esp, 0x10
cmp dword [0x41e46c], ebx
je 0x405372
push 0x41e4ec
lea ecx, [ebp - 0x22c]
call fcn.00403a61
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x234], ebx
movzx eax, word [esi + eax]
push eax
lea eax, [ebp - 0x22c]
push 0x4019ec
push eax
call fcn.00404079
mov esi, dword [ebp - 0x22c]
mov eax, dword [esi - 0xc]
add esp, 0xc
push ebx
lea ecx, [ebp - 0x234]
push ecx
push eax
push esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
lea ecx, [esi - 0x10]
call fcn.00403747
inc dword [ebp - 0x228]
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x224]
jb 0x4052e8
push dword [ebp - 0x214]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [0x41e46c], ebx
je 0x4053b0
push 0x4019ac
push edi
push 2
call fcn.0041956b
jmp 0x40551a
push dword [ebp - 0x220]
lea ecx, [ebp - 0x218]
call fcn.004038ad
mov eax, dword [ebp - 0x218]
cmp eax, ebx
jne 0x4053e0
mov eax, 0x8000ffff
mov dword [ebp - 0x210], eax
push 0x1ab
jmp 0x405110
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
mov dword [ebp - 0x210], eax
jge 0x4053fa
push 0x1ae
jmp 0x405110
mov eax, dword [ebp - 0x21c]
xor esi, esi
inc esi
cmp eax, ebx
je 0x4054b4
mov ecx, dword [eax]
push ebx
push esi
push eax
call dword [ecx + 0x30]
jmp 0x4054b4
cmp dword [ebp - 0x214], 3
je 0x4054e7
cmp dword [ebp - 0x214], 2
je 0x40551d
mov eax, dword [ebp - 0x218]
lea edx, [ebp - 0x224]
push edx
mov dword [ebp - 0x224], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
cmp eax, ebx
mov dword [ebp - 0x210], eax
jl 0x4054fc
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x405477
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jne 0x405504
mov eax, dword [ebp - 0x21c]
cmp dword [0x41e474], ebx
jne 0x405504
cmp eax, ebx
je 0x405497
mov ecx, dword [eax]
push 0x64
push dword [ebp - 0x224]
push eax
call dword [ecx + 0x20]
jmp 0x4054a9
push dword [ebp - 0x224]
push 3
push 9
call fcn.00404ad2
add esp, 0xc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
lea edx, [ebp - 0x214]
push edx
push eax
call dword [ecx + 0x14]
cmp eax, ebx
mov dword [ebp - 0x210], eax
jge 0x405418
push eax
push 0x401948
push edi
push esi
call fcn.0041956b
add esp, 0x10
jmp 0x40551d
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
lea edx, [ebp - 0x210]
push edx
push eax
call dword [ecx + 0x1c]
jmp 0x40551d
push eax
push 0x4018c8
jmp 0x4054db
push 0x401878
push edi
push esi
call fcn.0041956b
mov dword [ebp - 0x210], 0x800704c7
add esp, 0xc
cmp dword [0x41e468], ebx
jne 0x405570
cmp dword [ebp - 0x210], ebx
jl 0x405568
push 0x64
push 3
push 9
call fcn.00404ad2
add esp, 0xc
push ebx
lea eax, [ebp - 0x234]
push eax
mov esi, 0x4012d0
push esi
mov dword [ebp - 0x234], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x405570
push 0xa
call fcn.00404ad2
pop ecx
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x405596
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x405596
mov dword [ebp - 0x218], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x220]
cmp eax, ebx
je 0x4055bc
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x220]
cmp eax, ebx
je 0x4055bc
mov dword [ebp - 0x220], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x4055e2
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x4055e2
mov dword [ebp - 0x21c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x210], ebx
jge 0x405602
cmp dword [ebp - 0x210], 0x800700b7
je 0x405602
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x220]
mov edi, dword [ebp - 0x210]
cmp eax, ebx
je 0x405618
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x405628
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x405638
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x230]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x238]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004066f8
leave
ret 8