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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4ccbf8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x25c]
push edi
push eax
push 0x12c
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esi + 1]
push 0x5c
push eax
call fcn.0048ca3c
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edi, eax
add esp, 8
mov ecx, 0x5c5c
test edi, edi
je 0x41dbac
mov byte [edi], 0
cmp word [esi], cx
jne 0x41dac8
lea eax, [esi + 2]
push 0x5c
push eax
call fcn.00480740
add esp, 8
test eax, eax
je 0x41daf6
cmp byte [esi], 0
je 0x41daed
push esi
call ebx
test eax, eax
jne 0x41daed
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41daed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41db06
lea eax, [ebp - 0x25c]
push eax
call ebx
lea eax, [edi + 1]
mov byte [edi], 0x5c
push 0x5c
push eax
call fcn.0048ca3c
jmp 0x41da9c
push str.Error_creating_directory__s:_s
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00420470
add esp, 8
push eax
push esi
push 0xa97
push str.D:MyProjectsProPilotLibMisc.c
push str.Error_creating_directory__s:_s
lea eax, [ebp - 0x130]
push 0x12c
push eax
call fcn.004236c0
add esp, 0x20
cmp dword [ebp + 8], 0xffffffff
je 0x41dc9e
call fcn.00435f20
test eax, eax
je 0x41dc9e
call fcn.00435f20
cmp dword [eax], 0
je 0x41dc9e
mov eax, dword [0x4edee0]
test eax, eax
je 0x41db77
mov esi, dword [eax + 0x190]
jmp 0x41db7d
mov esi, dword [0x4edee4]
call fcn.00435f20
test eax, eax
je 0x41db8f
call fcn.00435f20
mov eax, dword [eax]
jmp 0x41db91
xor eax, eax
lea ecx, [ebp - 0x130]
push ecx
push ecx
push dword [0x4edee0]
push esi
push 0
push 0xa99
jmp 0x41dc8f
cmp word [esi], cx
jne 0x41dbc7
lea eax, [esi + 2]
push 0x5c
push eax
call fcn.00480740
add esp, 8
test eax, eax
je 0x41dcc3
cmp byte [esi], 0
je 0x41dcba
push esi
call ebx
test eax, eax
jne 0x41dcba
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41dcba
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x41dcba
push str.Error_creating_directory__s:__s
push 0
call edi
push eax
call fcn.00420470
add esp, 8
push eax
push esi
push 0xaa5
push str.D:MyProjectsProPilotLibMisc.c
push str.Error_creating_directory__s:__s
lea eax, [ebp - 0x130]
push 0x12c
push eax
call fcn.004236c0
add esp, 0x20
cmp dword [ebp + 8], 0xffffffff
je 0x41dc9e
call fcn.00435f20
test eax, eax
je 0x41dc9e
call fcn.00435f20
cmp dword [eax], 0
je 0x41dc9e
mov eax, dword [0x4edee0]
test eax, eax
je 0x41dc5f
mov esi, dword [eax + 0x190]
jmp 0x41dc65
mov esi, dword [0x4edee4]
call fcn.00435f20
test eax, eax
je 0x41dc77
call fcn.00435f20
mov eax, dword [eax]
jmp 0x41dc79
xor eax, eax
lea ecx, [ebp - 0x130]
push ecx
push ecx
push dword [0x4edee0]
push esi
push 0
push 0xaa7
push str.D:MyProjectsProPilotLibMisc.c
push 0x103
call eax
add esp, 0x20
lea eax, [ebp - 0x25c]
push eax
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f41c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x25c]
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f41c
mov esp, ebp
pop ebp
ret