Function at 0x423380
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x44bb36
push eax
mov eax, 0x110c
mov dword fs:[0], esp
call fcn.004364f0
mov eax, dword [0x455050]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x91c]
xor esi, esi
rep stosd dword es:[edi], eax
mov ecx, 0x200
lea edi, [esp + 0x11c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x91c]
mov dword [esp + 0x1124], esi
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x1c]
push 0x80
push edx
call fcn.0040ff60
add esp, 8
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x91c]
lea edx, [esp + 0x11c]
push eax
push ecx
push edx
call ebp
lea eax, [esp + 0x11c]
push str..tmp
push eax
call fcn.00437f3a
add esp, 8
lea ecx, [esp + 0x11c]
push ecx
call ebx
test eax, eax
je 0x423493
inc esi
cmp esi, 0xa
jl 0x423403
mov eax, dword [esp + 0x10]
mov ecx, dword [0x455054]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x423656
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x423656
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0042ac06
add esp, 4
xor eax, eax
jmp 0x4236e3
lea edx, [esp + 0x11c]
test edx, edx
jne 0x4234a2
xor eax, eax
jmp 0x4234b0
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x11c]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404a30
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push edx
call fcn.004231d0
test eax, eax
jne 0x423503
mov eax, dword [esp + 0x10]
mov edx, dword [0x455054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x423656
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x423642
mov eax, dword [0x455050]
mov dword [esp + 0x14], eax
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x91c]
mov byte [esp + 0x1124], 1
rep stosd dword es:[edi], eax
mov ecx, 0x200
lea edi, [esp + 0x11c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x91c]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1c]
xor esi, esi
rep stosd dword es:[edi], eax
lea edx, [esp + 0x1c]
push 0x80
push edx
call fcn.0040ff60
add esp, 8
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x91c]
lea edx, [esp + 0x11c]
push eax
push ecx
push edx
call ebp
lea eax, [esp + 0x11c]
push str..tmp
push eax
call fcn.00437f3a
add esp, 8
lea ecx, [esp + 0x11c]
push ecx
call ebx
test eax, eax
je 0x4235a8
inc esi
cmp esi, 0xa
jl 0x423554
jmp 0x4235d7
lea edx, [esp + 0x11c]
test edx, edx
jne 0x4235b7
xor eax, eax
jmp 0x4235c5
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x11c]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00404a30
mov edx, dword [esp + 0x14]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.00423700
add esp, 8
test eax, eax
jne 0x42365d
mov eax, dword [esp + 0x14]
mov ecx, dword [0x455054]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x42362b
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x42362b
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.0042ac06
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x455054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x423656
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x423656
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0042ac06
add esp, 4
xor eax, eax
jmp 0x4236e3
mov esi, dword [esp + 0x112c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
cmp eax, ecx
je 0x4236ae
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x423682
mov edx, dword [0x455054]
add eax, 0xfffffff4
cmp eax, edx
jne 0x423689
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x423697
mov eax, dword [ecx - 8]
push ecx
push eax
mov ecx, esi
call fcn.00404a30
jmp 0x4236ae
mov ecx, esi
call fcn.00401880
mov eax, dword [esp + 0x14]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x14]
mov byte [esp + 0x1124], 0
call fcn.004017f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1124], 0xffffffff
call fcn.004017f0
mov eax, 1
mov ecx, dword [esp + 0x111c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1118
ret 4