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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb3c
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov word [ebp - 0x28c], ax
push 0x206
push 0
lea ecx, [ebp - 0x28a]
push ecx
call fcn.00409320
add esp, 0xc
xor edx, edx
mov word [ebp - 0x494], dx
push 0x206
push 0
lea eax, [ebp - 0x492]
push eax
call fcn.00409320
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0xb3c], cx
push 0x206
push 0
lea edx, [ebp - 0xb3a]
push edx
call fcn.00409320
add esp, 0xc
mov dword [ebp - 0x908], 0
push 0x200
push 0
lea eax, [ebp - 0x694]
push eax
call fcn.00409320
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x494]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x694]
push edx
call fcn.00402530
add esp, 4
test eax, eax
je 0x4036f0
lea eax, [ebp - 0x28c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x50c]
push ecx
push 0x104
lea edx, [ebp - 0x28c]
push edx
call fcn.004058d6
add esp, 0xc
push 0x418c20
push 0x104
lea eax, [ebp - 0x28c]
push eax
call fcn.004058d6
add esp, 0xc
lea ecx, [ebp - 0x28c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x4ec]
push edx
push 0x10
push 0x41bfcc
call fcn.0040587a
add esp, 0xc
lea edx, [ebp - 0x28c]
lea ecx, [ebp - 0x4ec]
call fcn.00403ae9
lea ecx, [ebp - 0x4ec]
call fcn.00403b86
cmp eax, 1
jne 0x403347
mov dword [0x41bfc8], 1
xor eax, eax
jmp 0x403806
xor eax, eax
mov word [ebp - 0x44], ax
push 0x3e
push 0
lea ecx, [ebp - 0x42]
push ecx
call fcn.00409320
add esp, 0xc
xor edx, edx
mov word [ebp - 0x84], dx
push 0x3e
push 0
lea eax, [ebp - 0x82]
push eax
call fcn.00409320
add esp, 0xc
mov dword [ebp - 0x8d0], 0
lea ecx, [ebp - 0x4ec]
mov dword [ebp - 0x900], ecx
lea edx, [ebp - 0x44]
mov dword [ebp - 0x8ec], edx
mov eax, dword [ebp - 0x8ec]
mov dword [ebp - 0x928], eax
mov ecx, dword [ebp - 0x900]
mov dx, word [ecx]
mov word [ebp - 0x8d6], dx
mov eax, dword [ebp - 0x8ec]
mov cx, word [ebp - 0x8d6]
mov word [eax], cx
mov edx, dword [ebp - 0x900]
add edx, 2
mov dword [ebp - 0x900], edx
mov eax, dword [ebp - 0x8ec]
add eax, 2
mov dword [ebp - 0x8ec], eax
cmp word [ebp - 0x8d6], 0
jne 0x4033a4
lea ecx, [ebp - 0x4ec]
mov dword [ebp - 0x904], ecx
lea edx, [ebp - 0x84]
mov dword [ebp - 0x8f4], edx
mov eax, dword [ebp - 0x8f4]
mov dword [ebp - 0x930], eax
mov ecx, dword [ebp - 0x904]
mov dx, word [ecx]
mov word [ebp - 0x8dc], dx
mov eax, dword [ebp - 0x8f4]
mov cx, word [ebp - 0x8dc]
mov word [eax], cx
mov edx, dword [ebp - 0x904]
add edx, 2
mov dword [ebp - 0x904], edx
mov eax, dword [ebp - 0x8f4]
add eax, 2
mov dword [ebp - 0x8f4], eax
cmp word [ebp - 0x8dc], 0
jne 0x403410
lea ecx, [ebp - 0x84]
add ecx, 0xfffffffe
mov dword [ebp - 0x8e0], ecx
mov edx, dword [ebp - 0x8e0]
mov ax, word [edx + 2]
mov word [ebp - 0x90a], ax
add dword [ebp - 0x8e0], 2
cmp word [ebp - 0x90a], 0
jne 0x403467
mov edi, dword [ebp - 0x8e0]
mov ecx, dword [0x418c2c]
mov dword [edi], ecx
mov edx, dword [0x418c30]
mov dword [edi + 4], edx
mov eax, dword [0x418c34]
mov dword [edi + 8], eax
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x8d0], eax
cmp dword [ebp - 0x8d0], 0
je 0x40354e
mov edx, dword [ebp - 0x8d0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x84]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x8d0], eax
mov dword [ebp - 0x8fc], 0
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x8d0], eax
cmp dword [ebp - 0x8d0], 0
je 0x40354e
cmp dword [ebp - 0x8fc], 5
jge 0x40354e
mov edx, dword [ebp - 0x8d0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x8fc]
add eax, 1
mov dword [ebp - 0x8fc], eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4034fc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x28c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x690]
mov dword [ebp - 0x914], edx
mov dword [ebp - 0x8e4], 0x41c0a0
mov eax, dword [ebp - 0x8e4]
mov dword [ebp - 0x934], eax
mov ecx, dword [ebp - 0x914]
mov dx, word [ecx]
mov word [ebp - 0x8da], dx
mov eax, dword [ebp - 0x8e4]
mov cx, word [ebp - 0x8da]
mov word [eax], cx
mov edx, dword [ebp - 0x914]
add edx, 2
mov dword [ebp - 0x914], edx
mov eax, dword [ebp - 0x8e4]
add eax, 2
mov dword [ebp - 0x8e4], eax
cmp word [ebp - 0x8da], 0
jne 0x403588
lea ecx, [ebp - 0x60e]
mov dword [ebp - 0x91c], ecx
mov dword [ebp - 0x8e8], 0x41c120
mov edx, dword [ebp - 0x8e8]
mov dword [ebp - 0x92c], edx
mov eax, dword [ebp - 0x91c]
mov cx, word [eax]
mov word [ebp - 0x8d2], cx
mov edx, dword [ebp - 0x8e8]
mov ax, word [ebp - 0x8d2]
mov word [edx], ax
mov ecx, dword [ebp - 0x91c]
add ecx, 2
mov dword [ebp - 0x91c], ecx
mov edx, dword [ebp - 0x8e8]
add edx, 2
mov dword [ebp - 0x8e8], edx
cmp word [ebp - 0x8d2], 0
jne 0x4035f2
lea eax, [ebp - 0x5ee]
mov dword [ebp - 0x910], eax
mov dword [ebp - 0x8f0], 0x41c018
mov ecx, dword [ebp - 0x8f0]
mov dword [ebp - 0x924], ecx
mov edx, dword [ebp - 0x910]
mov ax, word [edx]
mov word [ebp - 0x8d4], ax
mov ecx, dword [ebp - 0x8f0]
mov dx, word [ebp - 0x8d4]
mov word [ecx], dx
mov eax, dword [ebp - 0x910]
add eax, 2
mov dword [ebp - 0x910], eax
mov ecx, dword [ebp - 0x8f0]
add ecx, 2
mov dword [ebp - 0x8f0], ecx
cmp word [ebp - 0x8d4], 0
jne 0x40365c
mov dx, word [ebp - 0x610]
mov word [0x41c098], dx
mov ax, word [ebp - 0x56e]
mov word [0x41c010], ax
mov ecx, dword [ebp - 0x4cc]
mov dword [0x41c00c], ecx
lea edx, [ebp - 0x50c]
push edx
push 0x10
push 0x41bfec
call fcn.0040587a
add esp, 0xc
mov dword [ebp - 0x908], 1
jmp 0x403800
push 0x236
push 0
lea eax, [ebp - 0x8cc]
push eax
call fcn.00409320
add esp, 0xc
lea ecx, [ebp - 0x8cc]
call fcn.00403cea
test eax, eax
je 0x403800
lea ecx, [ebp - 0x7be]
mov dword [ebp - 0x918], ecx
mov dword [ebp - 0x8f8], 0x41c120
mov edx, dword [ebp - 0x8f8]
mov dword [ebp - 0x920], edx
mov eax, dword [ebp - 0x918]
mov cx, word [eax]
mov word [ebp - 0x8d8], cx
mov edx, dword [ebp - 0x8f8]
mov ax, word [ebp - 0x8d8]
mov word [edx], ax
mov ecx, dword [ebp - 0x918]
add ecx, 2
mov dword [ebp - 0x918], ecx
mov edx, dword [ebp - 0x8f8]
add edx, 2
mov dword [ebp - 0x8f8], edx
cmp word [ebp - 0x8d8], 0
jne 0x40373b
mov ax, word [ebp - 0x7c2]
mov word [0x41c098], ax
mov cx, word [ebp - 0x7c8]
mov word [0x41c010], cx
mov edx, dword [ebp - 0x7c6]
mov ecx, 0x41c0a0
call fcn.00403ff5
mov edx, dword [ebp - 0x7cc]
mov ecx, 0x41c018
call fcn.00403ff5
lea edx, [ebp - 0x79e]
push edx
push 0x10
push 0x41bfcc
call fcn.0040587a
add esp, 0xc
lea eax, [ebp - 0x77e]
push eax
push 0x10
push 0x41bfec
call fcn.0040587a
add esp, 0xc
mov ecx, dword [ebp - 0x8c4]
mov dword [0x41c00c], ecx
mov dword [ebp - 0x908], 1
mov eax, dword [ebp - 0x908]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040565b
mov esp, ebp
pop ebp
ret