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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb3c
mov eax, dword [0x41b038]
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.0040a840
add esp, 0xc
xor edx, edx
mov word [ebp - 0x494], dx
push 0x206
push 0
lea eax, [ebp - 0x492]
push eax
call fcn.0040a840
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0xb3c], cx
push 0x206
push 0
lea edx, [ebp - 0xb3a]
push edx
call fcn.0040a840
add esp, 0xc
mov dword [ebp - 0x908], 0
push 0x200
push 0
lea eax, [ebp - 0x694]
push eax
call fcn.0040a840
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.00402550
add esp, 4
test eax, eax
je 0x403729
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.00406def
add esp, 0xc
push 0x419c20
push 0x104
lea eax, [ebp - 0x28c]
push eax
call fcn.00406def
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 0x41cfcc
call fcn.00406d93
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x4ec]
push ecx
call fcn.00403bf0
add esp, 8
lea edx, [ebp - 0x4ec]
push edx
call fcn.00403ca0
add esp, 4
cmp eax, 1
jne 0x403380
mov dword [0x41cfc8], 1
xor eax, eax
jmp 0x40384c
xor eax, eax
mov word [ebp - 0x44], ax
push 0x3e
push 0
lea ecx, [ebp - 0x42]
push ecx
call fcn.0040a840
add esp, 0xc
xor edx, edx
mov word [ebp - 0x84], dx
push 0x3e
push 0
lea eax, [ebp - 0x82]
push eax
call fcn.0040a840
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 0x4033dd
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 0x403449
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 0x4034a0
mov edi, dword [ebp - 0x8e0]
mov ecx, dword [0x419c2c]
mov dword [edi], ecx
mov edx, dword [0x419c30]
mov dword [edi + 4], edx
mov eax, dword [0x419c34]
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 0x403587
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 0x403587
cmp dword [ebp - 0x8fc], 5
jge 0x403587
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 0x403535
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], 0x41d0a0
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 0x4035c1
lea ecx, [ebp - 0x60e]
mov dword [ebp - 0x91c], ecx
mov dword [ebp - 0x8e8], 0x41d120
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 0x40362b
lea eax, [ebp - 0x5ee]
mov dword [ebp - 0x910], eax
mov dword [ebp - 0x8f0], 0x41d018
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 0x403695
mov dx, word [ebp - 0x610]
mov word [0x41d098], dx
mov ax, word [ebp - 0x56e]
mov word [0x41d010], ax
mov ecx, dword [ebp - 0x4cc]
mov dword [0x41d00c], ecx
lea edx, [ebp - 0x50c]
push edx
push 0x10
push 0x41cfec
call fcn.00406d93
add esp, 0xc
mov dword [ebp - 0x908], 1
jmp 0x403846
push 0x236
push 0
lea eax, [ebp - 0x8cc]
push eax
call fcn.0040a840
add esp, 0xc
lea ecx, [ebp - 0x8cc]
push ecx
call fcn.00403f60
add esp, 4
test eax, eax
je 0x403846
lea edx, [ebp - 0x7be]
mov dword [ebp - 0x918], edx
mov dword [ebp - 0x8f8], 0x41d120
mov eax, dword [ebp - 0x8f8]
mov dword [ebp - 0x920], eax
mov ecx, dword [ebp - 0x918]
mov dx, word [ecx]
mov word [ebp - 0x8d8], dx
mov eax, dword [ebp - 0x8f8]
mov cx, word [ebp - 0x8d8]
mov word [eax], cx
mov edx, dword [ebp - 0x918]
add edx, 2
mov dword [ebp - 0x918], edx
mov eax, dword [ebp - 0x8f8]
add eax, 2
mov dword [ebp - 0x8f8], eax
cmp word [ebp - 0x8d8], 0
jne 0x403778
mov cx, word [ebp - 0x7c2]
mov word [0x41d098], cx
mov dx, word [ebp - 0x7c8]
mov word [0x41d010], dx
mov eax, dword [ebp - 0x7c6]
push eax
push 0x41d0a0
call fcn.00404480
add esp, 8
mov ecx, dword [ebp - 0x7cc]
push ecx
push 0x41d018
call fcn.00404480
add esp, 8
lea edx, [ebp - 0x79e]
push edx
push 0x10
push 0x41cfcc
call fcn.00406d93
add esp, 0xc
lea eax, [ebp - 0x77e]
push eax
push 0x10
push 0x41cfec
call fcn.00406d93
add esp, 0xc
mov ecx, dword [ebp - 0x8c4]
mov dword [0x41d00c], ecx
mov dword [ebp - 0x908], 1
mov eax, dword [ebp - 0x908]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b74
mov esp, ebp
pop ebp
ret