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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8d4
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x290], ax
lea eax, [ebp - 0x28e]
push eax
call fcn.00409a20
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x498], ax
lea eax, [ebp - 0x496]
push eax
call fcn.00409a20
add esp, 0xc
xor esi, esi
push 0x200
lea eax, [ebp - 0x698]
push esi
push eax
call fcn.00409a20
add esp, 0xc
lea eax, [ebp - 0x498]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x698]
call fcn.00401da0
test eax, eax
je 0x402954
lea eax, [ebp - 0x290]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x290]
push 0x104
push eax
call fcn.00405fd5
add esp, 0xc
lea eax, [ebp - 0x290]
push 0x418c50
push 0x104
push eax
call fcn.00405fd5
add esp, 0xc
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x4f0]
push eax
push 0x10
push 0x41bfcc
call fcn.00405f79
add esp, 0xc
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.00402cd0
lea eax, [ebp - 0x4f0]
push eax
call fcn.00402d80
add esp, 0xc
cmp eax, 1
jne 0x402797
mov dword [0x41bfc8], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e34
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x46]
push eax
call fcn.00409a20
add esp, 0xc
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x86]
push eax
call fcn.00409a20
add esp, 0xc
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ebp + ecx - 0x4f0]
mov word [ebp + ecx - 0x48], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4027d0
xor ecx, ecx
jmp 0x4027f0
movzx eax, word [ebp + ecx - 0x4f0]
mov word [ebp + ecx - 0x88], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4027f0
lea ecx, [ebp - 0x88]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x402811
mov eax, dword [0x418c5c]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ecx], eax
mov eax, dword [0x418c60]
mov dword [ecx + 4], eax
mov eax, dword [0x418c64]
mov dword [ecx + 8], eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x20000
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x4028a5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x88]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [ebp - 0x48]
push eax
xor esi, esi
push esi
push 0x20000
call ebx
test eax, eax
je 0x4028a5
lea ecx, [ecx]
cmp esi, 5
jge 0x4028a5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
inc esi
call edi
lea eax, [ebp - 0x48]
push eax
push 0
push 0x20000
call ebx
test eax, eax
jne 0x402880
push 0x3e8
call edi
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ecx, ecx
jmp 0x4028c0
movzx eax, word [ebp + ecx - 0x694]
mov word [ecx + 0x41c0a0], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4028c0
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ebp + ecx - 0x612]
mov word [ecx + 0x41c120], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4028e0
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ebp + ecx - 0x5f2]
mov word [ecx + 0x41c018], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402900
movzx eax, word [ebp - 0x614]
mov word [0x41c098], ax
movzx eax, word [ebp - 0x572]
mov word [0x41c010], ax
mov eax, dword [ebp - 0x4d0]
mov dword [0x41c00c], eax
lea eax, [ebp - 0x510]
push eax
push 0x10
push 0x41bfec
call fcn.00405f79
jmp 0x402a15
push 0x236
lea eax, [ebp - 0x8d0]
push 0
push eax
call fcn.00409a20
add esp, 0xc
lea eax, [ebp - 0x8d0]
push eax
call fcn.00403040
add esp, 4
test eax, eax
je 0x402a1d
xor ecx, ecx
jmp 0x402990
movzx eax, word [ebp + ecx - 0x7c2]
mov word [ecx + 0x41c120], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402990
movzx eax, word [ebp - 0x7c6]
push dword [ebp - 0x7ca]
mov word [0x41c098], ax
movzx eax, word [ebp - 0x7cc]
push 0x41c0a0
mov word [0x41c010], ax
call fcn.00403560
push dword [ebp - 0x7d0]
push 0x41c018
call fcn.00403560
lea eax, [ebp - 0x7a2]
push eax
push 0x10
push 0x41bfcc
call fcn.00405f79
add esp, 0x1c
lea eax, [ebp - 0x782]
push eax
push 0x10
push 0x41bfec
call fcn.00405f79
mov eax, dword [ebp - 0x8c8]
mov dword [0x41c00c], eax
mov esi, 1
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405e34
mov esp, ebp
pop ebp
ret