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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a825b
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4db06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x21c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0xc]
push 0x58
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.0048b570
push 0x10000
call fcn.00487989
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x44a74d
push 0x10000
push 0
push ebx
call fcn.0048b570
add esp, 0xc
jmp 0x44a74f
xor ebx, ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 4], 0
lea esi, [edi + 0x78]
mov dword [edi + 0x6c], 2
cmp dword [esi + 0x18], 1
mov dword [ebp - 0x220], 0
jae 0x44a79e
cmp dword [esi + 4], 2
jae 0x44a790
cmp dword [esi + 0xc], 2
jb 0x44a79e
push dword [esi + 0x14]
mov ecx, esi
call fcn.0045ed40
test eax, eax
je 0x44a79e
mov dword [esi + 8], 2
mov dword [esi + 0x18], 1
mov eax, dword [esi]
cmp word [eax], 0
je 0x44a846
push eax
call dword [sym.imp.KERNEL30.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44a8e3
test al, 0x10
je 0x44a8e3
mov ecx, dword [esi]
mov eax, ebx
mov edx, 0x7fff
nop dword [eax + eax]
movzx edi, word [ecx]
test di, di
je 0x44a7e6
mov word [eax], di
dec edx
add eax, 2
add ecx, 2
test edx, edx
jg 0x44a7d0
xor ecx, ecx
mov word [eax], cx
sub eax, ebx
sar eax, 1
cmp eax, 4
jle 0x44a80b
lea ecx, [ebx + eax*2]
movzx eax, word [ecx - 2]
cmp eax, 0x2f
je 0x44a805
cmp eax, 0x5c
jne 0x44a80b
xor eax, eax
mov word [ecx - 2], ax
mov edi, dword [ebp - 0x21c]
cmp dword [esi + 0x18], 1
jae 0x44a83f
cmp dword [esi + 4], 2
jae 0x44a831
cmp dword [esi + 0xc], 2
jb 0x44a83f
push dword [esi + 0x14]
mov ecx, esi
call fcn.0045ed40
test eax, eax
je 0x44a83f
mov dword [esi + 8], 2
mov dword [esi + 0x18], 1
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [edi + 0x7c]
and eax, 0xfffffffe
cmp eax, 0x40000
jae 0x44a873
push ecx
push 0x40000
push 0x40000
mov ecx, esi
mov dword [esi + 0x14], 0x40000
mov dword [esi + 0x18], 0
call fcn.0045ec90
mov eax, dword [ebp - 0x21c]
mov edi, dword [ebp + 0x10]
mov dword [eax + 0x94], edi
cmp word [ebx], 0
jne 0x44a8ae
test edi, edi
je 0x44a8ae
mov eax, ebx
mov ecx, 0x7fff
sub edi, ebx
movzx edx, word [edi + eax]
test dx, dx
je 0x44a8a9
mov word [eax], dx
dec ecx
add eax, 2
test ecx, ecx
jg 0x44a895
xor ecx, ecx
mov word [eax], cx
push 0x58
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.0048b570
mov edi, dword [ebp - 0x21c]
add esp, 0xc
mov dword [ebp - 0x284], 0x58
mov eax, dword [edi + 0x44]
test eax, eax
je 0x44a919
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x280], eax
jmp 0x44a923
lea eax, [ebp - 0x220]
push eax
push ebx
push 0x8000
push dword [esi]
call dword [sym.imp.KERNEL30.dll_GetFullPathNameW]
test eax, eax
je 0x44a811
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x44a811
xor ecx, ecx
mov word [eax - 2], cx
jmp 0x44a811
mov dword [ebp - 0x280], 0
mov ecx, dword [ebp - 0x224]
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x278], ecx
mov ecx, 0x44aa70
mov dword [ebp - 0x258], ebx
setne al
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x26c], eax
mov eax, dword [esi]
mov dword [ebp - 0x268], eax
mov eax, dword [edi + 0x7c]
shr eax, 1
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x254], eax
mov eax, dword [edi + 0x70]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x240], ecx
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x44a998
cmp ecx, 1
je 0x44a998
cmp ecx, 3
mov eax, 0x880024
mov edx, 0x980024
cmove eax, edx
jmp 0x44a9aa
xor eax, eax
mov edx, 0x200
cmp ecx, 1
cmove eax, edx
or eax, 0x881024
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL30.dll_GetCurrentDirectoryW]
mov eax, dword [edi + 0x74]
test eax, eax
je 0x44a9dd
cmp eax, 1
je 0x44a9dd
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
jmp 0x44a9ea
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x44aa2b
mov eax, dword [edi + 0x94]
test eax, eax
je 0x44aa2b
mov ecx, dword [ebp - 0x268]
mov edx, 0x7fff
nop dword [eax]
movzx esi, word [ecx]
test si, si
je 0x44aa26
mov word [eax], si
dec edx
add eax, 2
add ecx, 2
test edx, edx
jg 0x44aa10
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL30.dll_SetCurrentDirectoryW]
push ebx
call fcn.00487954
mov eax, dword [ebp - 0x21c]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487555
mov esp, ebp
pop ebp
ret 0xc