Function at 0x44c3f0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x44c]
sub esp, 0x44c
push 0xffffffffffffffff
push 0x5c3f7e
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x6b20c8]
xor eax, ebp
mov dword [ebp + 0x448], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x454]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x44c43b
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44c5e8
test al, 0x10
jne 0x44c5e8
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x14], 0
jb 0x44c462
mov esi, dword [esi]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x23c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor eax, eax
mov dword [ebp + 0x21c], 0
lea ecx, [ebp + 0x23c]
mov dword [ebp + 0x220], 7
mov word [ebp + 0x20c], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44c4a0
sub ecx, edx
lea eax, [ebp + 0x23c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x20c]
call fcn.00457aa0
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax], cx
lea eax, [ebp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp + 0x23c]
push eax
call esi
xor eax, eax
mov dword [ebp + 0x234], 0
mov dword [ebp + 0x238], 7
mov word [ebp + 0x224], ax
lea eax, [ebp + 0x224]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 0x20c]
mov ecx, edi
push eax
call fcn.0044d340
test al, al
jne 0x44c52d
xor bl, bl
jmp 0x44c541
push 0
push 0
lea eax, [ebp + 0x224]
mov ecx, edi
push eax
call fcn.0044b570
mov bl, al
mov edx, dword [ebp + 0x238]
cmp edx, 8
jb 0x44c581
mov ecx, dword [ebp + 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44c577
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44c68a
push edx
push ecx
call fcn.0048fd5c
add esp, 8
xor eax, eax
mov dword [ebp + 0x234], 0
mov word [ebp + 0x224], ax
lea eax, [ebp]
push eax
mov dword [ebp + 0x238], 7
call esi
mov edx, dword [ebp + 0x220]
cmp edx, 8
jb 0x44c5e4
mov ecx, dword [ebp + 0x20c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44c5da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44c68f
push edx
push ecx
call fcn.0048fd5c
add esp, 8
mov al, bl
jmp 0x44c665
push 0
add edi, 0x10
push 0x63618c
mov ecx, edi
call fcn.00457aa0
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 0x10
jb 0x44c638
lea eax, [ecx + 0x10]
mov ebx, edi
mov dword [ebp - 0x10], eax
mov dword [edi + 0x10], eax
cmp edx, 8
jb 0x44c61a
mov ebx, dword [edi]
push 0x20
lea eax, [ebx + ecx*2]
push str.File_not_found:
push eax
call fcn.00589c20
mov eax, dword [ebp - 0x10]
add esp, 0xc
xor ecx, ecx
mov word [ebx + eax*2], cx
jmp 0x44c64f
push 0x10
push str.File_not_found:
mov byte [ebp - 0x10], 0
mov ecx, edi
push dword [ebp - 0x10]
push 0x10
call fcn.00457870
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x44c65a
mov esi, dword [esi]
push eax
push esi
mov ecx, edi
call fcn.004579f0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x448]
xor ecx, ebp
call fcn.0048f6ef
lea esp, [ebp + 0x44c]
pop ebp
ret 4
call fcn.00592e1e
call fcn.00592e1e
int3