Function at 0x44b440
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
xor eax, eax
push esi
push edi
mov word [ebx], ax
mov esi, dword [0x4a2544]
test esi, esi
je 0x44b4b3
nop dword [eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x44b460
cmp word [ebx], ax
je 0x44b4b3
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44b480
sub ecx, edx
sar ecx, 1
cmp word [ebx + ecx*2 - 2], 0x5c
je 0x44b4b3
lea edi, [ebx - 2]
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x44b4a0
mov eax, dword [0x49161c]
mov dword [edi], eax
mov edx, dword [ebp - 4]
mov esi, edx
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x44b4c0
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x44b4d0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test edx, edx
je 0x44b4f8
mov ecx, ebx
call fcn.0045e6d0
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 2
push 0x104
mov dword [ebp - 0xc], eax
call fcn.00466864
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
add esp, 8
mov dword [ebp - 8], esi
test esi, esi
je 0x44b5b2
mov edx, esi
mov ecx, ebx
sub edx, ebx
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x44b530
push 0x5c
push esi
call fcn.004642b5
add esp, 8
test eax, eax
je 0x44b59d
xor ecx, ecx
push 2
push 0x104
mov word [eax], cx
call fcn.00466864
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x44b59d
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call esi
push 0
push 0
push ebx
call edi
push dword [ebp + 8]
mov edi, eax
call esi
push dword [ebp + 8]
call fcn.0046687a
mov esi, dword [ebp - 8]
add esp, 4
jmp 0x44b59f
xor edi, edi
push esi
call fcn.0046687a
add esp, 4
test edi, edi
jne 0x44b5bb
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0
push 0
push ebx
call edi
mov edi, eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
test edi, edi
jne 0x44b695
push edi
push ebx
call dword [sym.imp.MMFS2.dll_Ordinal_1033]
cmp eax, 0xffffffff
jne 0x44b5e0
mov esi, 0xc5
jmp 0x44b5ec
push eax
mov esi, 0xc6
call dword [sym.imp.MMFS2.dll_Ordinal_419]
mov ebx, dword [ebp - 4]
push 0x5c
push ebx
call fcn.004642b5
add esp, 8
test eax, eax
cmove eax, ebx
mov dword [ebp + 8], eax
sub esi, 0xc5
je 0x44b63b
sub esi, 1
jne 0x44b695
push 2
push 0x204
call fcn.00466864
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x44b695
push 0x80
lea esi, [ebx + 0x308]
push esi
push 0xc6
jmp 0x44b661
push 2
push 0x204
call fcn.00466864
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x44b695
push 0x80
lea esi, [ebx + 0x308]
push esi
push 0xc5
push dword [0x4a25a0]
call dword [sym.imp.USER32.dll_LoadStringW]
push dword [ebp + 8]
push esi
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40
push 0
push ebx
push dword [0x4a25b0]
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call fcn.0046687a
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret