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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46435e
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x47e4f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0x472350
mov ecx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x63c], ebx
mov dword [ebp - 0x640], 0
call fcn.0040fbb0
mov esi, 1
lea ecx, [ebp - 0x658]
mov dword [ebp - 4], 0
mov dword [ebp - 0x640], esi
call fcn.00423ae0
mov eax, dword [0x48129c]
push 0x46b4c0
push 0x22b
push eax
lea ecx, [ebp - 0x658]
mov dword [ebp - 4], esi
call fcn.00424030
test eax, eax
jne 0x4315f8
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 0
call fcn.00423ff0
mov eax, ebx
jmp 0x431802
xor ecx, ecx
push 0x208
push ecx
lea edx, [ebp - 0x21a]
push edx
mov word [ebp - 0x21c], cx
call fcn.00446080
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.CPInstaller
lea ecx, [ebp - 0x21c]
push ecx
mov esi, eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test esi, esi
je 0x4315e2
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x634]
call fcn.0040fbb0
mov eax, dword [ebp - 0x634]
push eax
mov ebx, 2
push 0
mov byte [ebp - 4], bl
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea ecx, [ebp - 0x644]
push 0
push ecx
call fcn.00418b70
add esp, 8
mov eax, dword [eax]
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x638]
call fcn.0040fbb0
mov eax, dword [ebp - 0x644]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4316b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
push 0x410
push ecx
lea edx, [ebp - 0x62e]
push edx
mov word [ebp - 0x630], cx
call fcn.00446080
mov eax, dword [ebp - 0x638]
mov ecx, dword [ebp - 0x634]
add esp, 0xc
push eax
push ecx
lea edx, [ebp - 0x630]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x630]
push ecx
lea ecx, [ebp - 0x658]
call fcn.004241f0
test eax, eax
jne 0x43177a
mov eax, dword [ebp - 0x638]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43173a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x634]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431760
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 0
call fcn.00423ff0
mov eax, dword [ebp - 0x63c]
jmp 0x431802
lea eax, [ebp - 0x630]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x431783
mov esi, dword [ebp - 0x63c]
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x630]
push ecx
mov ecx, esi
call fcn.0040f6c0
mov eax, dword [ebp - 0x638]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4317cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x634]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4317f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 0
call fcn.00423ff0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00445a92
mov esp, ebp
pop ebp
ret 4