Function at 0x402e30
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 esi
push edi
xor eax, eax
mov word [ebp - 0x410], ax
push 0x206
push 0
lea ecx, [ebp - 0x40e]
push ecx
call fcn.00408f50
add esp, 0xc
xor edx, edx
mov word [ebp - 0x820], dx
push 0x206
push 0
lea eax, [ebp - 0x81e]
push eax
call fcn.00408f50
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x618], cx
push 0x206
push 0
lea edx, [ebp - 0x616]
push edx
call fcn.00408f50
add esp, 0xc
mov dword [ebp - 4], 0
push 0x200
push 0
lea eax, [ebp - 0x208]
push eax
call fcn.00408f50
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 0x403322
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.00405607
add esp, 0xc
push 0x4143bc
push 0x104
lea eax, [ebp - 0x410]
push eax
call fcn.00405607
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.0040567c
add esp, 0xc
lea edi, [ebp - 0x410]
lea esi, [ebp - 0x60]
call fcn.00403750
lea esi, [ebp - 0x60]
call fcn.004037f0
cmp eax, 1
jne 0x402f79
mov dword [0x418638], 1
xor eax, eax
jmp 0x403432
xor eax, eax
mov word [ebp - 0x8a8], ax
push 0x3e
push 0
lea ecx, [ebp - 0x8a6]
push ecx
call fcn.00408f50
add esp, 0xc
xor edx, edx
mov word [ebp - 0x860], dx
push 0x3e
push 0
lea eax, [ebp - 0x85e]
push eax
call fcn.00408f50
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 0x402fdc
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 0x403045
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 0x40309c
mov edi, dword [ebp - 0xb0c]
mov ecx, dword [0x4143c8]
mov dword [edi], ecx
mov edx, dword [0x4143cc]
mov dword [edi + 4], edx
mov eax, dword [0x4143d0]
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 0x403189
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 0x403189
cmp dword [ebp - 0x8ac], 5
jge 0x403189
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 0x403134
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 0x4031c3
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 0x40322d
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 0x403297
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.0040567c
add esp, 0xc
mov dword [ebp - 4], 1
jmp 0x40342f
push 0x236
push 0
lea eax, [ebp - 0xae8]
push eax
call fcn.00408f50
add esp, 0xc
lea esi, [ebp - 0xae8]
call fcn.00403a00
test eax, eax
je 0x40342f
lea ecx, [ebp - 0x9da]
mov dword [ebp - 0xb44], ecx
mov dword [ebp - 0xb48], 0x418470
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 0x40336d
mov ax, word [ebp - 0x9de]
mov word [0x41846c], ax
mov cx, word [ebp - 0x9e4]
mov word [0x4185f0], cx
mov ecx, dword [ebp - 0x9e2]
mov esi, 0x4184f0
call fcn.00403d30
mov ecx, dword [ebp - 0x9e8]
mov esi, 0x418570
call fcn.00403d30
lea edx, [ebp - 0x9ba]
push edx
push 0x10
push 0x418618
call fcn.0040567c
add esp, 0xc
lea eax, [ebp - 0x99a]
push eax
push 0x10
push 0x4185f8
call fcn.0040567c
add esp, 0xc
mov ecx, dword [ebp - 0xae0]
mov dword [0x4185f4], 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.004055f8
mov esp, ebp
pop ebp
ret