Function at 0x402298
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
mov esi, 0x206
push esi
mov word [ebp - 0x290], ax
xor ebx, ebx
lea eax, [ebp - 0x28e]
push ebx
push eax
call fcn.00409600
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x498], ax
lea eax, [ebp - 0x496]
push ebx
push eax
call fcn.00409600
add esp, 0xc
lea eax, [ebp - 0x698]
push 0x200
push ebx
push eax
call fcn.00409600
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x498]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x698]
call fcn.00401be5
test eax, eax
je 0x40252d
lea eax, [ebp - 0x290]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x290]
push esi
push eax
call fcn.00405bb5
add esp, 0xc
lea eax, [ebp - 0x290]
push 0x418a14
push esi
push eax
call fcn.00405bb5
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.00405b59
add esp, 0xc
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.004028b0
lea eax, [ebp - 0x4f0]
push eax
call fcn.00402960
xor ecx, ecx
inc ecx
add esp, 0xc
cmp eax, ecx
jne 0x4023b8
mov dword [0x41bfc8], ecx
xor eax, eax
jmp 0x4025e4
xor eax, eax
push 0x3e
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x46]
push ebx
push eax
call fcn.00409600
add esp, 0xc
xor eax, eax
push 0x3e
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x86]
push ebx
push eax
call fcn.00409600
add esp, 0xc
mov ecx, ebx
movzx eax, word [ebp + ecx - 0x4f0]
mov word [ebp + ecx - 0x48], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4023ea
mov ecx, ebx
movzx eax, word [ebp + ecx - 0x4f0]
mov word [ebp + ecx - 0x88], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402401
lea edi, [ebp - 0x88]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x402422
mov esi, str._STOP
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x48]
push eax
movsd dword es:[edi], dword [esi]
push ebx
push 0x20000
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x402493
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x88]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, ebx
jmp 0x40247f
cmp esi, 5
jge 0x402493
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
inc esi
call edi
lea eax, [ebp - 0x48]
push eax
push ebx
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
jne 0x40246b
push 0x3e8
call edi
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, ebx
movzx eax, word [ebp + ecx - 0x694]
mov word [ecx + 0x41c0a0], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4024a9
mov ecx, ebx
movzx eax, word [ebp + ecx - 0x612]
mov word [ecx + 0x41c120], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4024c2
movzx eax, word [ebp + ebx - 0x5f2]
mov word [ebx + 0x41c018], ax
lea ebx, [ebx + 2]
test ax, ax
jne 0x4024d9
mov ax, word [ebp - 0x614]
mov word [0x41c098], ax
mov ax, 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.00405b59
jmp 0x4025dc
push 0x236
lea eax, [ebp - 0x8d0]
push ebx
push eax
call fcn.00409600
add esp, 0xc
lea eax, [ebp - 0x8d0]
push eax
call fcn.00402c20
pop ecx
test eax, eax
je 0x4025e2
movzx eax, word [ebp + ebx - 0x7c2]
mov word [ebx + 0x41c120], ax
lea ebx, [ebx + 2]
test ax, ax
jne 0x402557
mov ax, word [ebp - 0x7c6]
push dword [ebp - 0x7ca]
mov word [0x41c098], ax
mov ax, word [ebp - 0x7cc]
push 0x41c0a0
mov word [0x41c010], ax
call fcn.00403140
push dword [ebp - 0x7d0]
push 0x41c018
call fcn.00403140
lea eax, [ebp - 0x7a2]
push eax
push 0x10
push 0x41bfcc
call fcn.00405b59
add esp, 0x1c
lea eax, [ebp - 0x782]
push eax
push 0x10
push 0x41bfec
call fcn.00405b59
mov eax, dword [ebp - 0x8c8]
mov dword [0x41c00c], eax
xor ebx, ebx
add esp, 0xc
inc ebx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405a14
leave
ret