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

Disassembly:
push 0xffffffffffffffff
push 0x48a7c2
mov eax, dword fs:[0]
push eax
sub esp, 0x7c8
mov eax, dword [0x4b9b30]
xor eax, esp
mov dword [esp + 0x7c4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b9b30]
xor eax, esp
push eax
lea eax, [esp + 0x7dc]
mov dword fs:[0], eax
mov edx, dword [esp + 0x808]
mov eax, dword [esp + 0x7f0]
mov ecx, dword [esp + 0x804]
mov esi, dword [esp + 0x7ec]
push 0x206
mov dword [esp + 0x30], edx
xor ebp, ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x810]
mov dword [esp + 0x28], ecx
lea edx, [esp + 0x5d6]
xor ecx, ecx
push ebp
push edx
mov dword [esp + 0x3c], eax
mov word [esp + 0x5dc], cx
call fcn.00466350
mov eax, dword [esp + 0x804]
mov ecx, dword [esp + 0x800]
add esp, 0xc
push ebp
push eax
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x34], ebp
call fcn.0042ff00
push 0xa
lea ecx, [esp + 0x38]
mov dword [esp + 0x7e8], ebp
call fcn.00430820
push 0x1fe
lea eax, [esp + 0x3d6]
xor edx, edx
push ebp
push eax
mov byte [esp + 0x7f0], 1
mov word [esp + 0x3dc], dx
call fcn.00466350
add esp, 0xc
cmp esi, ebp
jne 0x431db8
lea ecx, [esp + 0x34]
mov byte [esp + 0x7e4], 0
call fcn.00430c10
lea ecx, [esp + 0x50]
mov dword [esp + 0x7e4], 0xffffffff
call fcn.00430150
xor eax, eax
jmp 0x4321d1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x431ea9
test al, 0x10
je 0x431ea9
push 0x206
lea edx, [esp + 0x1ce]
xor ecx, ecx
push ebp
push edx
mov dword [esp + 0x34], 1
mov word [esp + 0x1d4], cx
call fcn.00466350
add esp, 0xc
push esi
lea eax, [esp + 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x1c8]
push ecx
call edi
cmp word [esp + eax*2 + 0x1c6], 0x5c
jne 0x431e36
lea edx, [esp + 0x1c8]
push edx
call edi
xor ecx, ecx
mov word [esp + eax*2 + 0x1c6], cx
lea edx, [esp + 0x1c8]
push 0x5c
push edx
call fcn.0046700c
add esp, 8
test eax, eax
je 0x431e63
lea eax, [esp + 0x1c8]
push 0x5c
push eax
call fcn.0046700c
add esp, 8
xor ecx, ecx
mov word [eax], cx
push 1
push ecx
lea edx, [esp + 0x1d0]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0041a8b0
lea eax, [esp + 0x3c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push esi
mov byte [esp + 0x7f8], 2
call fcn.0041a8b0
lea ecx, [esp + 0x60]
mov byte [esp + 0x7f4], 1
call fcn.00430e20
jmp 0x431f40
push esi
lea ecx, [esp + 0x1c]
call fcn.0041a8b0
mov bl, 3
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x7e8], bl
call fcn.0041a8b0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push ebp
push ebp
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x804], 4
call fcn.00430b90
lea ecx, [esp + 0x44]
call fcn.00430c40
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x7e4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431f18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x7e4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431f40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x5d0]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x5d0]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x431f60
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x5ce], 0x5c
je 0x431f8d
push 0x49f910
lea edx, [esp + 0x5d4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x54]
call fcn.004303d0
test eax, eax
je 0x431d8c
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x18], 1
cmp ebp, esi
je 0x432195
push 0x206
mov eax, ebp
mov ebp, dword [ebp]
lea edx, [esp + 0x1ce]
xor ecx, ecx
push esi
push edx
lea edi, [eax + 8]
mov dword [esp + 0x28], esi
mov word [esp + 0x1d4], cx
call fcn.00466350
mov eax, dword [edi]
push 0x100
lea ecx, [esp + 0x3e0]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
call fcn.00468522
lea edx, [esp + 0x400]
push 0x100
push edx
call fcn.004691a0
add esp, 0x38
push 0x491ac8
lea eax, [esp + 0x3d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x432148
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x1c], 1
cmp ecx, esi
je 0x432148
mov ebx, dword [esp + 0x2c]
cmp ebx, esi
je 0x432148
mov eax, dword [edi]
push ebx
lea edx, [esp + 0x1cc]
push edx
push eax
call ecx
add esp, 0xc
test eax, eax
je 0x43218d
mov eax, dword [edi + 4]
mov eax, dword [eax - 0xc]
lea esi, [edi + 4]
add eax, 0xfffffffc
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0041a030
push eax
mov ecx, esi
mov byte [esp + 0x7e8], 5
call fcn.0041a280
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x7e4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4320bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
push 0x100
lea ecx, [esp + 0x3d4]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.00468522
add esp, 0x24
push ebx
lea edx, [esp + 0x3d4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x432106
push 0x48f7ac
mov ecx, esi
call fcn.00421cc0
push ebx
mov ecx, esi
call fcn.0041a870
mov eax, dword [esp + 0x24]
mov esi, dword [esi]
push 0
push 0
push 0x80
push eax
push 0
push 0
push 0
push 0
push esi
call fcn.00468522
mov ecx, dword [esp + 0x48]
push ebx
push 0x100
push ecx
call fcn.0046a37e
add esp, 0x30
lea edx, [esp + 0x1c8]
push edx
mov ecx, edi
call fcn.0041a740
xor esi, esi
mov edx, dword [esp + 0x28]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push edx
xor edx, edx
cmp byte [edi + 8], dl
setne dl
dec edx
push edx
push eax
push ecx
lea ecx, [esp + 0x60]
call fcn.0042ffe0
test eax, eax
jne 0x43216f
mov dword [esp + 0x18], esi
cmp dword [esp + 0x1c], esi
je 0x432183
lea eax, [esp + 0x1c8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x18], esi
je 0x432195
inc dword [esp + 0x14]
cmp ebp, esi
jne 0x431fbd
lea ecx, [esp + 0x50]
call fcn.0042ff40
cmp dword [esp + 0x14], esi
jne 0x4321a8
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x7e4], 0
call fcn.00430c10
lea ecx, [esp + 0x50]
mov dword [esp + 0x7e4], 0xffffffff
call fcn.00430150
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x7dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7c4]
xor ecx, esp
call fcn.00466fd0
add esp, 0x7d4
ret