Function at 0x402fc0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb50
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
xor eax, eax
mov word [ebp - 0x410], ax
push 0x206
push 0
lea ecx, [ebp - 0x40e]
push ecx
call fcn.00409230
add esp, 0xc
xor edx, edx
mov word [ebp - 0x820], dx
push 0x206
push 0
lea eax, [ebp - 0x81e]
push eax
call fcn.00409230
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x618], cx
push 0x206
push 0
lea edx, [ebp - 0x616]
push edx
call fcn.00409230
add esp, 0xc
mov dword [ebp - 4], 0
push 0x200
push 0
lea eax, [ebp - 0x208]
push eax
call fcn.00409230
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x820]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x208]
push edx
call fcn.004023f0
add esp, 4
test eax, eax
je 0x4034b2
lea eax, [ebp - 0x410]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x80]
push ecx
push 0x104
lea edx, [ebp - 0x410]
push edx
call fcn.00405715
add esp, 0xc
push str..exe
push 0x104
lea eax, [ebp - 0x410]
push eax
call fcn.00405715
add esp, 0xc
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x60]
push edx
push 0x10
push 0x41a560
call fcn.00405792
add esp, 0xc
lea edi, [ebp - 0x410]
lea esi, [ebp - 0x60]
call fcn.004038e0
lea esi, [ebp - 0x60]
call fcn.00403980
cmp eax, 1
jne 0x403109
mov dword [0x41a580], 1
xor eax, eax
jmp 0x4035c2
xor eax, eax
mov word [ebp - 0x8a8], ax
push 0x3e
push 0
lea ecx, [ebp - 0x8a6]
push ecx
call fcn.00409230
add esp, 0xc
xor edx, edx
mov word [ebp - 0x860], dx
push 0x3e
push 0
lea eax, [ebp - 0x85e]
push eax
call fcn.00409230
add esp, 0xc
mov dword [ebp - 0x864], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0xaec], ecx
lea edx, [ebp - 0x8a8]
mov dword [ebp - 0xaf0], edx
mov eax, dword [ebp - 0xaf0]
mov dword [ebp - 0xaf4], eax
mov ecx, dword [ebp - 0xaec]
mov dx, word [ecx]
mov word [ebp - 0xaf6], dx
mov eax, dword [ebp - 0xaf0]
mov cx, word [ebp - 0xaf6]
mov word [eax], cx
mov edx, dword [ebp - 0xaec]
add edx, 2
mov dword [ebp - 0xaec], edx
mov eax, dword [ebp - 0xaf0]
add eax, 2
mov dword [ebp - 0xaf0], eax
cmp word [ebp - 0xaf6], 0
jne 0x40316c
lea ecx, [ebp - 0x60]
mov dword [ebp - 0xafc], ecx
lea edx, [ebp - 0x860]
mov dword [ebp - 0xb00], edx
mov eax, dword [ebp - 0xb00]
mov dword [ebp - 0xb04], eax
mov ecx, dword [ebp - 0xafc]
mov dx, word [ecx]
mov word [ebp - 0xb06], dx
mov eax, dword [ebp - 0xb00]
mov cx, word [ebp - 0xb06]
mov word [eax], cx
mov edx, dword [ebp - 0xafc]
add edx, 2
mov dword [ebp - 0xafc], edx
mov eax, dword [ebp - 0xb00]
add eax, 2
mov dword [ebp - 0xb00], eax
cmp word [ebp - 0xb06], 0
jne 0x4031d5
lea ecx, [ebp - 0x860]
add ecx, 0xfffffffe
mov dword [ebp - 0xb0c], ecx
mov edx, dword [ebp - 0xb0c]
mov ax, word [edx + 2]
mov word [ebp - 0xb0e], ax
add dword [ebp - 0xb0c], 2
cmp word [ebp - 0xb0e], 0
jne 0x40322c
mov edi, dword [ebp - 0xb0c]
mov ecx, dword [0x415f40]
mov dword [edi], ecx
mov edx, dword [0x415f44]
mov dword [edi + 4], edx
mov eax, dword [0x415f48]
mov dword [edi + 8], eax
lea ecx, [ebp - 0x8a8]
push ecx
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x864], eax
cmp dword [ebp - 0x864], 0
je 0x403319
mov edx, dword [ebp - 0x864]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x860]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x864], eax
mov dword [ebp - 0x8ac], 0
lea ecx, [ebp - 0x8a8]
push ecx
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x864], eax
cmp dword [ebp - 0x864], 0
je 0x403319
cmp dword [ebp - 0x8ac], 5
jge 0x403319
mov edx, dword [ebp - 0x864]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x8ac]
add eax, 1
mov dword [ebp - 0x8ac], eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4032c4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x204]
mov dword [ebp - 0xb14], edx
mov dword [ebp - 0xb18], 0x41a430
mov eax, dword [ebp - 0xb18]
mov dword [ebp - 0xb1c], eax
mov ecx, dword [ebp - 0xb14]
mov dx, word [ecx]
mov word [ebp - 0xb1e], dx
mov eax, dword [ebp - 0xb18]
mov cx, word [ebp - 0xb1e]
mov word [eax], cx
mov edx, dword [ebp - 0xb14]
add edx, 2
mov dword [ebp - 0xb14], edx
mov eax, dword [ebp - 0xb18]
add eax, 2
mov dword [ebp - 0xb18], eax
cmp word [ebp - 0xb1e], 0
jne 0x403353
lea ecx, [ebp - 0x182]
mov dword [ebp - 0xb24], ecx
mov dword [ebp - 0xb28], 0x41a3b0
mov edx, dword [ebp - 0xb28]
mov dword [ebp - 0xb2c], edx
mov eax, dword [ebp - 0xb24]
mov cx, word [eax]
mov word [ebp - 0xb2e], cx
mov edx, dword [ebp - 0xb28]
mov ax, word [ebp - 0xb2e]
mov word [edx], ax
mov ecx, dword [ebp - 0xb24]
add ecx, 2
mov dword [ebp - 0xb24], ecx
mov edx, dword [ebp - 0xb28]
add edx, 2
mov dword [ebp - 0xb28], edx
cmp word [ebp - 0xb2e], 0
jne 0x4033bd
lea eax, [ebp - 0x162]
mov dword [ebp - 0xb34], eax
mov dword [ebp - 0xb38], 0x41a4b8
mov ecx, dword [ebp - 0xb38]
mov dword [ebp - 0xb3c], ecx
mov edx, dword [ebp - 0xb34]
mov ax, word [edx]
mov word [ebp - 0xb3e], ax
mov ecx, dword [ebp - 0xb38]
mov dx, word [ebp - 0xb3e]
mov word [ecx], dx
mov eax, dword [ebp - 0xb34]
add eax, 2
mov dword [ebp - 0xb34], eax
mov ecx, dword [ebp - 0xb38]
add ecx, 2
mov dword [ebp - 0xb38], ecx
cmp word [ebp - 0xb3e], 0
jne 0x403427
mov dx, word [ebp - 0x184]
mov word [0x41a4b0], dx
mov ax, word [ebp - 0xe2]
mov word [0x41a538], ax
mov ecx, dword [ebp - 0x40]
mov dword [0x41a53c], ecx
lea edx, [ebp - 0x80]
push edx
push 0x10
push 0x41a540
call fcn.00405792
add esp, 0xc
mov dword [ebp - 4], 1
jmp 0x4035bf
push 0x236
push 0
lea eax, [ebp - 0xae8]
push eax
call fcn.00409230
add esp, 0xc
lea esi, [ebp - 0xae8]
call fcn.00403b30
test eax, eax
je 0x4035bf
lea ecx, [ebp - 0x9da]
mov dword [ebp - 0xb44], ecx
mov dword [ebp - 0xb48], 0x41a3b0
mov edx, dword [ebp - 0xb48]
mov dword [ebp - 0xb4c], edx
mov eax, dword [ebp - 0xb44]
mov cx, word [eax]
mov word [ebp - 0xb4e], cx
mov edx, dword [ebp - 0xb48]
mov ax, word [ebp - 0xb4e]
mov word [edx], ax
mov ecx, dword [ebp - 0xb44]
add ecx, 2
mov dword [ebp - 0xb44], ecx
mov edx, dword [ebp - 0xb48]
add edx, 2
mov dword [ebp - 0xb48], edx
cmp word [ebp - 0xb4e], 0
jne 0x4034fd
mov ax, word [ebp - 0x9de]
mov word [0x41a4b0], ax
mov cx, word [ebp - 0x9e4]
mov word [0x41a538], cx
mov ecx, dword [ebp - 0x9e2]
mov esi, 0x41a430
call fcn.00403f00
mov ecx, dword [ebp - 0x9e8]
mov esi, 0x41a4b8
call fcn.00403f00
lea edx, [ebp - 0x9ba]
push edx
push 0x10
push 0x41a560
call fcn.00405792
add esp, 0xc
lea eax, [ebp - 0x99a]
push eax
push 0x10
push 0x41a540
call fcn.00405792
add esp, 0xc
mov ecx, dword [ebp - 0xae0]
mov dword [0x41a53c], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00405706
mov esp, ebp
pop ebp
ret