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

Disassembly:
sub esp, 0x8d4
mov eax, dword [0x41a04c]
xor eax, esp
mov dword [esp + 0x8cc], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x4d2]
push ecx
mov word [esp + 0x4d4], ax
call fcn.004092d0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x6da]
push eax
mov word [esp + 0x6dc], dx
call fcn.004092d0
add esp, 0xc
push 0x200
xor esi, esi
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.004092d0
add esp, 0xc
push 0x104
lea edx, [esp + 0x6d4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ebx, [esp + 0x10]
call fcn.00401c50
test eax, eax
je 0x40272a
lea eax, [esp + 0x4c8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x198]
push ecx
lea edx, [esp + 0x4cc]
push 0x104
push edx
call fcn.00405832
add esp, 0xc
push 0x418098
lea eax, [esp + 0x4cc]
push 0x104
push eax
call fcn.00405832
add esp, 0xc
lea ecx, [esp + 0x4c8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x1b8]
push edx
push 0x10
push 0x41c5a0
call fcn.004057c3
add esp, 0xc
lea eax, [esp + 0x4c8]
push eax
lea ecx, [esp + 0x1bc]
push ecx
call fcn.00402ab0
lea edx, [esp + 0x1c0]
push edx
call fcn.00402b60
add esp, 0xc
cmp eax, 1
jne 0x402547
mov dword [0x41c5c0], eax
xor eax, eax
jmp 0x4027fb
xor eax, eax
push 0x3e
push eax
lea ecx, [esp + 0x452]
push ecx
mov word [esp + 0x454], ax
call fcn.004092d0
add esp, 0xc
xor edx, edx
push 0x3e
push edx
lea eax, [esp + 0x492]
push eax
mov word [esp + 0x494], dx
call fcn.004092d0
add esp, 0xc
xor eax, eax
jmp 0x402590
movzx ecx, word [esp + eax + 0x1b8]
mov word [esp + eax + 0x448], cx
add eax, 2
test cx, cx
jne 0x402590
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x1b8]
mov word [esp + eax + 0x488], cx
add eax, 2
test cx, cx
jne 0x4025b0
lea eax, [esp + 0x488]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4025d2
mov ecx, dword [0x4180a4]
mov edx, dword [0x4180a8]
mov edi, dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [eax], ecx
mov ecx, dword [0x4180ac]
mov dword [eax + 4], edx
lea edx, [esp + 0x448]
push edx
push 0
push 0x20000
mov dword [eax + 8], ecx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x402675
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
lea eax, [esp + 0x488]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [esp + 0x448]
push ecx
xor esi, esi
push esi
push 0x20000
call edi
test eax, eax
je 0x402675
lea esp, [esp]
cmp esi, 5
jge 0x402675
push eax
call ebx
push 0x1f4
inc esi
call ebp
lea edx, [esp + 0x448]
push edx
push 0
push 0x20000
call edi
test eax, eax
jne 0x402650
push 0x3e8
call ebp
lea eax, [esp + 0x4c8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x14]
mov word [eax + 0x41c470], cx
add eax, 2
test cx, cx
jne 0x402690
xor eax, eax
jmp 0x4026b0
movzx ecx, word [esp + eax + 0x96]
mov word [eax + 0x41c3f0], cx
add eax, 2
test cx, cx
jne 0x4026b0
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0xb6]
mov word [eax + 0x41c4f8], cx
add eax, 2
test cx, cx
jne 0x4026d0
mov cx, word [esp + 0x94]
mov dx, word [esp + 0x136]
mov eax, dword [esp + 0x1d8]
mov word [0x41c4f0], cx
lea ecx, [esp + 0x198]
push ecx
push 0x10
push 0x41c580
mov word [0x41c578], dx
mov dword [0x41c57c], eax
call fcn.004057c3
jmp 0x4027f1
push 0x236
lea edx, [esp + 0x214]
push 0
push edx
call fcn.004092d0
lea eax, [esp + 0x21c]
add esp, 0xc
push eax
call fcn.00402df0
add esp, 4
test eax, eax
je 0x4027f9
xor eax, eax
jmp 0x402760
movzx ecx, word [esp + eax + 0x31e]
mov word [eax + 0x41c3f0], cx
add eax, 2
test cx, cx
jne 0x402760
mov eax, dword [esp + 0x316]
mov cx, word [esp + 0x31a]
mov dx, word [esp + 0x314]
push eax
push 0x41c470
mov word [0x41c4f0], cx
mov word [0x41c578], dx
call fcn.00403250
mov ecx, dword [esp + 0x318]
push ecx
push 0x41c4f8
call fcn.00403250
lea edx, [esp + 0x34e]
push edx
push 0x10
push 0x41c5a0
call fcn.004057c3
add esp, 0x1c
lea eax, [esp + 0x35e]
push eax
push 0x10
push 0x41c580
call fcn.004057c3
mov ecx, dword [esp + 0x224]
mov dword [0x41c57c], ecx
mov esi, 1
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x8dc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004057b4
add esp, 0x8d4
ret