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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9b4
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax], 0x5c
jne 0x4232ca
mov eax, dword [ebp - 4]
cmp word [eax + 2], 0x5c
jne 0x4232ca
mov dword [ebp - 0xc], 0x23bd
jmp 0x42358c
lea eax, [ebp - 0x644]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov ax, word [ebp - 0x644]
call fcn.00404214
mov word [ebp - 0x16], ax
mov word [ebp - 0x14], 0x3d
mov eax, dword [ebp - 4]
mov ax, word [eax]
call fcn.0041a200
test al, al
je 0x42331f
mov eax, dword [ebp - 4]
cmp word [eax + 2], 0x3a
jne 0x42331f
mov eax, dword [ebp - 4]
mov ax, word [eax]
call fcn.00404214
mov word [ebp - 0x12], ax
add dword [ebp - 4], 4
jmp 0x423327
mov ax, word [ebp - 0x16]
mov word [ebp - 0x12], ax
mov word [ebp - 0x10], 0x3a
mov word [ebp - 0xe], 0
mov eax, dword [ebp - 4]
call fcn.00414b3c
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
cmp word [eax], 0x5c
jne 0x4233a2
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [ebp - 0x64c], eax
xor eax, eax
mov dword [ebp - 0x648], eax
fild qword [ebp - 0x64c]
fcomp dword [0x423594]
wait
fnstsw ax
sahf
jbe 0x423379
mov dword [ebp - 0xc], 0xce
jmp 0x42358c
mov ax, word [ebp - 0x12]
mov word [ebp - 0x43a], ax
mov ax, word [ebp - 0x10]
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x436]
mov edx, dword [ebp - 4]
call fcn.0041a014
jmp 0x42345d
lea eax, [ebp - 0x14]
call fcn.00420fe8
cmp eax, dword [ebp - 0x1c]
jne 0x4233bf
lea eax, [ebp - 0x43a]
mov edx, dword [ebp - 0x1c]
call fcn.0041a014
jmp 0x4233de
mov ax, word [ebp - 0x12]
mov word [ebp - 0x43a], ax
mov ax, word [ebp - 0x10]
mov word [ebp - 0x438], ax
mov word [ebp - 0x436], 0
lea eax, [ebp - 0x43a]
call fcn.00414b3c
add eax, eax
lea edx, [ebp - 0x43a]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov word [eax], 0x5c
add dword [ebp - 0x1c], 2
lea eax, [ebp - 0x43a]
push eax
mov eax, dword [ebp - 0x1c]
pop edx
sub eax, edx
sar eax, 1
jns 0x423416
adc eax, 0
cdq
push edx
push eax
mov eax, dword [ebp - 0x24]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x64c], eax
mov dword [ebp - 0x648], edx
fild qword [ebp - 0x64c]
fcomp dword [0x423594]
wait
fnstsw ax
sahf
jbe 0x423452
mov dword [ebp - 0xc], 0xce
jmp 0x42358c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
call fcn.0041a014
mov word [ebp - 0x43c], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x644]
push eax
push 0x104
lea eax, [ebp - 0x43a]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x423497
mov dword [ebp - 0xc], 5
jmp 0x42358c
cmp dword [ebp - 0x1c], 0
jne 0x4234b5
lea eax, [ebp - 0x644]
call fcn.00414b3c
add eax, eax
lea edx, [ebp - 0x644]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp word [eax], 0
jne 0x4234df
lea eax, [ebp - 0x63e]
cmp eax, dword [ebp - 0x1c]
jae 0x4234df
mov eax, dword [ebp - 0x1c]
cmp word [eax - 2], 0x5c
jne 0x4234df
sub dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
mov word [eax], 0
mov eax, dword [0x436a44]
cmp byte [eax], 0
je 0x4234f6
lea eax, [ebp - 0x644]
xor edx, edx
call fcn.00423154
cmp byte [ebp - 5], 0
je 0x423560
lea eax, [ebp - 0x644]
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x42351a
test dword [ebp - 0x20], 0x410
jne 0x423546
cmp dword [ebp - 0x20], 0xffffffff
jne 0x42353d
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jne 0x423535
mov dword [ebp - 0x20], 3
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
jmp 0x42358c
mov dword [ebp - 0xc], 0x10b
jmp 0x42358c
lea eax, [ebp - 0x644]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x423560
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0xc], eax
jmp 0x42358c
lea edx, [ebp - 0x644]
lea eax, [ebp - 0x14]
call fcn.00421324
test eax, eax
je 0x42357b
mov dword [ebp - 0xc], 8
jmp 0x42358c
mov eax, dword [0x436d4c]
xor edx, edx
call fcn.004230a8
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret