Function at 0x4443c4
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x46a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x678], 0xffffffff
and eax, 1
mov dword [ebp - 0x674], eax
mov eax, dword [ebp + 0xc]
shr eax, 1
and eax, 1
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x67c], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
shr eax, 2
mov edi, 0x208
and eax, 1
mov dword [ebp - 0x66c], ebx
xor esi, esi
mov dword [ebp - 0x670], eax
and dword [ebp - 0x668], esi
lea eax, [ebp - 0x414]
push edi
push esi
push eax
call fcn.0042a6f0
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042a6f0
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x444485
call edi
cmp eax, 2
push 3
pop ecx
cmove eax, ecx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x444485
push esi
push 0xd3
push str.dirutil.cpp
call fcn.0043c22c
jmp 0x4447db
test bl, 0x10
je 0x4447c4
test bl, 1
mov ebx, dword [ebp - 0x66c]
je 0x4444cb
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4444cb
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xdc
jmp 0x444476
cmp dword [ebp - 0x674], 0
jne 0x4444e1
cmp dword [ebp - 0x67c], 0
je 0x4446db
cmp dword [ebp - 0x670], 0
je 0x444525
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x444525
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xe7
jmp 0x444476
lea eax, [ebp - 0x668]
push eax
push 0x455744
push ebx
call fcn.0043db65
mov esi, eax
test esi, esi
js 0x4447db
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x678], ebx
cmp ebx, 0xffffffff
jne 0x444586
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xf2
jmp 0x444476
push 0x2e
pop ecx
cmp cx, word [ebp - 0x638]
jne 0x4445b7
xor eax, eax
cmp ax, word [ebp - 0x636]
je 0x4446b8
cmp cx, word [ebp - 0x636]
jne 0x4445b7
cmp ax, word [ebp - 0x634]
je 0x4446b8
xor eax, eax
mov word [ebp - 0x432], ax
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x638]
push eax
push dword [ebp - 0x66c]
call fcn.0043db65
mov esi, eax
test esi, esi
js 0x4447c9
cmp dword [ebp - 0x67c], 0
mov al, byte [ebp - 0x664]
je 0x44461f
test al, 0x10
je 0x44461f
lea eax, [ebp - 0x668]
push eax
call fcn.0043d91a
mov esi, eax
test esi, esi
js 0x4447c9
push dword [ebp + 0xc]
push dword [ebp - 0x668]
call fcn.004443c4
jmp 0x4446b8
cmp dword [ebp - 0x674], 0
je 0x4446b8
test al, 7
je 0x444649
push 0x80
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x444732
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4446b8
cmp dword [ebp - 0x670], eax
je 0x444780
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x4662a0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x44475e
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x20c]
push 1
push eax
push dword [ebp - 0x668]
call esi
push 4
push 0
test eax, eax
je 0x4446b0
lea eax, [ebp - 0x20c]
push eax
jmp 0x4446b6
push dword [ebp - 0x668]
call esi
lea eax, [ebp - 0x664]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x444586
call edi
cmp eax, 0x12
jne 0x4447a2
xor esi, esi
mov ebx, dword [ebp - 0x66c]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4447c9
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070020
jne 0x444722
cmp dword [ebp - 0x670], 0
je 0x44472a
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x44472a
xor esi, esi
test esi, esi
jns 0x4447c9
push esi
push 0x14c
jmp 0x444752
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x116
push str.dirutil.cpp
call fcn.0043c22c
jmp 0x4447c9
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x120
jmp 0x444752
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x130
jmp 0x444752
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x13d
jmp 0x444752
mov esi, 0x8000ffff
mov eax, dword [ebp - 0x678]
cmp eax, 0xffffffff
je 0x4447db
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x668], 0
je 0x4447ef
push dword [ebp - 0x668]
call fcn.0044506c
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429d4c
mov esp, ebp
pop ebp
ret 8