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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb50
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor eax, eax
mov word [ebp - 0x410], ax
push 0x206
push 0
lea ecx, [ebp - 0x40e]
push ecx
call fcn.00408ce0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x820], dx
push 0x206
push 0
lea eax, [ebp - 0x81e]
push eax
call fcn.00408ce0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x618], cx
push 0x206
push 0
lea edx, [ebp - 0x616]
push edx
call fcn.00408ce0
add esp, 0xc
mov dword [ebp - 4], 0
push 0x200
push 0
lea eax, [ebp - 0x208]
push eax
call fcn.00408ce0
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.00402370
add esp, 4
test eax, eax
je 0x403433
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.004053a1
add esp, 0xc
push 0x414400
push 0x104
lea eax, [ebp - 0x410]
push eax
call fcn.004053a1
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 0x418618
call fcn.00405416
add esp, 0xc
lea ebx, [ebp - 0x410]
lea edi, [ebp - 0x60]
call fcn.00403822
lea esi, [ebp - 0x60]
call fcn.004038b7
cmp eax, 1
jne 0x40308a
mov dword [0x418638], 1
xor eax, eax
jmp 0x403548
xor eax, eax
mov word [ebp - 0x8a8], ax
push 0x3e
push 0
lea ecx, [ebp - 0x8a6]
push ecx
call fcn.00408ce0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x860], dx
push 0x3e
push 0
lea eax, [ebp - 0x85e]
push eax
call fcn.00408ce0
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 0x4030ed
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 0x403156
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 0x4031ad
mov edi, dword [ebp - 0xb0c]
mov ecx, dword [0x41440c]
mov dword [edi], ecx
mov edx, dword [0x414410]
mov dword [edi + 4], edx
mov eax, dword [0x414414]
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 0x40329a
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 0x40329a
cmp dword [ebp - 0x8ac], 5
jge 0x40329a
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 0x403245
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], 0x4184f0
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 0x4032d4
lea ecx, [ebp - 0x182]
mov dword [ebp - 0xb24], ecx
mov dword [ebp - 0xb28], 0x418470
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 0x40333e
lea eax, [ebp - 0x162]
mov dword [ebp - 0xb34], eax
mov dword [ebp - 0xb38], 0x418570
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 0x4033a8
mov dx, word [ebp - 0x184]
mov word [0x41846c], dx
mov ax, word [ebp - 0xe2]
mov word [0x4185f0], ax
mov ecx, dword [ebp - 0x40]
mov dword [0x4185f4], ecx
lea edx, [ebp - 0x80]
push edx
push 0x10
push 0x4185f8
call fcn.00405416
add esp, 0xc
mov dword [ebp - 4], 1
jmp 0x403545
push 0x236
push 0
lea eax, [ebp - 0xae8]
push eax
call fcn.00408ce0
add esp, 0xc
lea ecx, [ebp - 0xae8]
push ecx
call fcn.00403952
add esp, 4
test eax, eax
je 0x403545
lea edx, [ebp - 0x9da]
mov dword [ebp - 0xb44], edx
mov dword [ebp - 0xb48], 0x418470
mov eax, dword [ebp - 0xb48]
mov dword [ebp - 0xb4c], eax
mov ecx, dword [ebp - 0xb44]
mov dx, word [ecx]
mov word [ebp - 0xb4e], dx
mov eax, dword [ebp - 0xb48]
mov cx, word [ebp - 0xb4e]
mov word [eax], cx
mov edx, dword [ebp - 0xb44]
add edx, 2
mov dword [ebp - 0xb44], edx
mov eax, dword [ebp - 0xb48]
add eax, 2
mov dword [ebp - 0xb48], eax
cmp word [ebp - 0xb4e], 0
jne 0x403482
mov cx, word [ebp - 0x9de]
mov word [0x41846c], cx
mov dx, word [ebp - 0x9e4]
mov word [0x4185f0], dx
mov edx, dword [ebp - 0x9e2]
mov esi, 0x4184f0
call fcn.00403d15
mov edx, dword [ebp - 0x9e8]
mov esi, 0x418570
call fcn.00403d15
lea eax, [ebp - 0x9ba]
push eax
push 0x10
push 0x418618
call fcn.00405416
add esp, 0xc
lea ecx, [ebp - 0x99a]
push ecx
push 0x10
push 0x4185f8
call fcn.00405416
add esp, 0xc
mov edx, dword [ebp - 0xae0]
mov dword [0x4185f4], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00405392
mov esp, ebp
pop ebp
ret