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

Disassembly:
push 0xffffffffffffffff
push 0x489bd2
mov eax, dword fs:[0]
push eax
sub esp, 0x7c0
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x7bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b9b20]
xor eax, esp
push eax
lea eax, [esp + 0x7d4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x7fc]
mov ecx, dword [esp + 0x800]
mov edi, dword [esp + 0x7e8]
mov esi, dword [esp + 0x7e4]
push 0x206
mov dword [esp + 0x28], eax
xor ebp, ebp
lea eax, [esp + 0x5ce]
xor edx, edx
push ebp
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], ecx
mov word [esp + 0x5d4], dx
call fcn.004661f0
mov ecx, dword [esp + 0x800]
mov edx, dword [esp + 0x7fc]
mov eax, dword [esp + 0x7f8]
add esp, 0xc
push ecx
push edx
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x2c], ebp
call fcn.0042fb50
push 0xa
lea ecx, [esp + 0x30]
mov dword [esp + 0x7e0], ebp
call fcn.00430580
push 0x1fe
lea edx, [esp + 0x3ce]
xor ecx, ecx
push ebp
push edx
mov byte [esp + 0x7e8], 1
mov word [esp + 0x3d4], cx
call fcn.004661f0
add esp, 0xc
cmp esi, ebp
je 0x431788
cmp edi, ebp
je 0x431788
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x431449
test al, 0x10
je 0x431449
push 0x206
lea ecx, [esp + 0x1c6]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x2c], 1
mov word [esp + 0x1cc], ax
call fcn.004661f0
add esp, 0xc
push esi
lea edx, [esp + 0x1c4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esp + 0x1c0]
push eax
call edi
cmp word [esp + eax*2 + 0x1be], 0x5c
jne 0x4313d2
lea ecx, [esp + 0x1c0]
push ecx
call edi
xor edx, edx
mov word [esp + eax*2 + 0x1be], dx
lea eax, [esp + 0x1c0]
push 0x5c
push eax
call fcn.00466eac
add esp, 8
test eax, eax
je 0x4313ff
lea ecx, [esp + 0x1c0]
push 0x5c
push ecx
call fcn.00466eac
add esp, 8
xor edx, edx
mov word [eax], dx
push 1
push ecx
lea eax, [esp + 0x1c8]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.0041a8d0
lea ecx, [esp + 0x34]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push esi
mov byte [esp + 0x7f0], 2
call fcn.0041a8d0
lea ecx, [esp + 0x58]
mov byte [esp + 0x7ec], 1
call fcn.00430b80
mov edi, dword [esp + 0x14]
jmp 0x4314e0
push esi
lea ecx, [esp + 0x18]
call fcn.0041a8d0
mov bl, 3
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7e0], bl
call fcn.0041a8d0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x7fc], 4
call fcn.004308f0
lea ecx, [esp + 0x3c]
call fcn.004309a0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x7dc], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4314b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x7dc], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4314e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x5c8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x5c8]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x431500
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x5c6], 0x5c
je 0x43152d
push 0x49ebd0
lea edx, [esp + 0x5cc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [esp + 0x5cc]
push eax
push str._s_x08.tmp
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push edi
lea ecx, [esp + 0x4c]
call fcn.0042ff10
test eax, eax
je 0x431788
mov eax, dword [esp + 0x30]
mov esi, 1
mov dword [esp + 0x18], esi
mov ebp, eax
test eax, eax
je 0x431756
xor ecx, ecx
push 0x206
mov eax, ebp
mov ebp, dword [ebp]
push ecx
lea edx, [esp + 0x1ca]
push edx
lea edi, [eax + 8]
mov dword [esp + 0x20], 0
mov word [esp + 0x1cc], cx
call fcn.004661f0
mov eax, dword [edi]
push 0x100
lea ecx, [esp + 0x3d8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.00468332
lea edx, [esp + 0x3f8]
push 0x100
push edx
call fcn.0046905f
add esp, 0x38
push 0x490ad8
lea eax, [esp + 0x3cc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x43170a
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], 1
test ecx, ecx
je 0x43170a
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x43170a
mov eax, dword [edi]
push ebx
lea edx, [esp + 0x1c4]
push edx
push eax
call ecx
add esp, 0xc
test eax, eax
je 0x43174e
mov eax, dword [edi + 4]
mov eax, dword [eax - 0xc]
lea esi, [edi + 4]
add eax, 0xfffffffc
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0041a050
push eax
mov ecx, esi
mov byte [esp + 0x7e0], 5
call fcn.0041a2a0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x7dc], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43167c
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 + 0x3cc]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.00468332
lea edx, [esp + 0x3ec]
push 0x100
push edx
call fcn.00469515
mov eax, ebx
add esp, 0x2c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4316b7
sub eax, edx
sar eax, 1
test eax, eax
jle 0x4316d4
push eax
push ebx
call fcn.00469515
add esp, 8
push ebx
lea eax, [esp + 0x3cc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4316fb
push 0x48e72c
mov ecx, esi
call fcn.00420f20
push ebx
mov ecx, esi
call fcn.0041a890
lea ecx, [esp + 0x1c0]
push ecx
mov ecx, edi
call fcn.0041a760
mov edx, dword [esp + 0x20]
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 + 0x58]
call fcn.0042fc30
test eax, eax
jne 0x431731
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], 0
je 0x431746
lea eax, [esp + 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x431756
test ebp, ebp
jne 0x431574
lea ecx, [esp + 0x48]
call fcn.0042fb90
lea ecx, [esp + 0x2c]
mov byte [esp + 0x7dc], 0
call fcn.00430970
lea ecx, [esp + 0x48]
mov dword [esp + 0x7dc], 0xffffffff
call fcn.0042feb0
mov eax, esi
jmp 0x4317af
lea ecx, [esp + 0x2c]
mov byte [esp + 0x7dc], 0
call fcn.00430970
lea ecx, [esp + 0x48]
mov dword [esp + 0x7dc], 0xffffffff
call fcn.0042feb0
xor eax, eax
mov ecx, dword [esp + 0x7d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7bc]
xor ecx, esp
call fcn.00466e70
add esp, 0x7cc
ret