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

Disassembly:
push 0xffffffffffffffff
push 0x489992
mov eax, dword fs:[0]
push eax
sub esp, 0xbb4
mov eax, dword [0x4bdbb0]
xor eax, esp
mov dword [esp + 0xbb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bdbb0]
xor eax, esp
push eax
lea eax, [esp + 0xbc8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xbf0]
mov ecx, dword [esp + 0xbf4]
mov edi, dword [esp + 0xbdc]
mov esi, dword [esp + 0xbd8]
push 0x3fe
mov dword [esp + 0x28], eax
xor ebp, ebp
lea eax, [esp + 0x7ca]
xor edx, edx
push ebp
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], ecx
mov word [esp + 0x7d0], dx
call fcn.00463850
mov ecx, dword [esp + 0xbf4]
mov edx, dword [esp + 0xbf0]
mov eax, dword [esp + 0xbec]
add esp, 0xc
push ebp
push ecx
push edx
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x30], ebp
call fcn.0042ca90
push 0xa
lea ecx, [esp + 0x30]
mov dword [esp + 0xbd4], ebp
call fcn.0042d510
push 0x1fe
lea edx, [esp + 0x1ca]
xor ecx, ecx
push ebp
push edx
mov byte [esp + 0xbdc], 1
mov word [esp + 0x1d0], cx
call fcn.00463850
add esp, 0xc
cmp esi, ebp
je 0x42ec73
cmp edi, ebp
je 0x42ec73
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42e93a
test al, 0x10
je 0x42e93a
push 0x3fe
lea ecx, [esp + 0x3ca]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x2c], 1
mov word [esp + 0x3d0], ax
call fcn.00463850
add esp, 0xc
push esi
lea edx, [esp + 0x3c8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esp + 0x3c4]
push eax
call edi
cmp word [esp + eax*2 + 0x3c2], 0x5c
jne 0x42e8c3
lea ecx, [esp + 0x3c4]
push ecx
call edi
xor edx, edx
mov word [esp + eax*2 + 0x3c2], dx
lea eax, [esp + 0x3c4]
push 0x5c
push eax
call fcn.0046450c
add esp, 8
test eax, eax
je 0x42e8f0
lea ecx, [esp + 0x3c4]
push 0x5c
push ecx
call fcn.0046450c
add esp, 8
xor edx, edx
mov word [eax], dx
push 1
push ecx
lea eax, [esp + 0x3cc]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00411f40
lea ecx, [esp + 0x34]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push esi
mov byte [esp + 0xbe4], 2
call fcn.00411f40
lea ecx, [esp + 0x58]
mov byte [esp + 0xbe0], 1
call fcn.0042e070
mov edi, dword [esp + 0x14]
jmp 0x42e9d1
push esi
lea ecx, [esp + 0x18]
call fcn.00411f40
mov bl, 3
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0xbd4], bl
call fcn.00411f40
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 + 0xbf0], 4
call fcn.0042d920
lea ecx, [esp + 0x3c]
call fcn.0042db50
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xbd0], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e9a9
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 + 0xbd0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e9d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x7c4]
push ecx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x7c4]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42e9f0
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x7c2], 0x5c
je 0x42ea1d
push 0x4a2058
lea edx, [esp + 0x7c8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [esp + 0x7c8]
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.0042ce60
test eax, eax
je 0x42ec73
mov eax, dword [esp + 0x30]
mov esi, 1
mov dword [esp + 0x14], esi
mov ebp, eax
test eax, eax
je 0x42ec41
xor ecx, ecx
push 0x3fe
mov eax, ebp
mov ebp, dword [ebp]
push ecx
lea edx, [esp + 0x3ce]
push edx
lea edi, [eax + 8]
mov dword [esp + 0x24], 0
mov word [esp + 0x3d0], cx
call fcn.00463850
mov eax, dword [edi]
push 0x100
lea ecx, [esp + 0x1d4]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.00465992
lea edx, [esp + 0x1f4]
push 0x100
push edx
call fcn.00466400
add esp, 0x38
push 0x4931d4
lea eax, [esp + 0x1c8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x42eae6
mov dword [esp + 0x18], 1
cmp dword [esp + 0x20], 0
jne 0x42ebf5
cmp dword [esp + 0x18], 0
je 0x42ebf5
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x42ebf5
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x42ebf5
mov eax, dword [edi]
push ebx
lea edx, [esp + 0x3c8]
push edx
push eax
call ecx
add esp, 0xc
test eax, eax
je 0x42ec39
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.004116c0
push eax
mov ecx, esi
mov byte [esp + 0xbd4], 5
call fcn.00411910
lea ecx, [esp + 0x1c]
mov byte [esp + 0xbd0], 1
call fcn.004111f0
mov eax, dword [esi]
push 0x100
lea edx, [esp + 0x1c8]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.00465992
lea eax, [esp + 0x1e8]
push 0x100
push eax
call fcn.0046664c
mov eax, ebx
add esp, 0x2c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42eba2
sub eax, edx
sar eax, 1
test eax, eax
jle 0x42ebbf
push eax
push ebx
call fcn.0046664c
add esp, 8
push ebx
lea ecx, [esp + 0x1c8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x42ebe6
push 0x48e754
mov ecx, esi
call fcn.00418400
push ebx
mov ecx, esi
call fcn.00411f00
lea edx, [esp + 0x3c4]
push edx
mov ecx, edi
call fcn.00411dd0
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.0042cb80
test eax, eax
jne 0x42ec1c
mov dword [esp + 0x14], eax
cmp dword [esp + 0x18], 0
je 0x42ec31
lea eax, [esp + 0x3c4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x42ec41
test ebp, ebp
jne 0x42ea64
lea ecx, [esp + 0x48]
call fcn.0042cae0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xbd0], 0
call fcn.0042db20
lea ecx, [esp + 0x48]
mov dword [esp + 0xbd0], 0xffffffff
call fcn.0042ce00
mov eax, esi
jmp 0x42ec9a
lea ecx, [esp + 0x2c]
mov byte [esp + 0xbd0], 0
call fcn.0042db20
lea ecx, [esp + 0x48]
mov dword [esp + 0xbd0], 0xffffffff
call fcn.0042ce00
xor eax, eax
mov ecx, dword [esp + 0xbc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xbb0]
xor ecx, esp
call fcn.004644d0
add esp, 0xbc0
ret