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

Disassembly:
mov eax, 0x421a54
call fcn.00420f90
sub esp, 0x10
lea eax, [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
jne 0x403cd2
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x18]
push eax
push 3
pop ebx
push ebx
call esi
test eax, eax
je 0x403ade
cmp byte [ebp - 0x17], 0x3a
jne 0x403ade
movzx eax, byte [ebp - 0x18]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
test eax, eax
je 0x403afa
cmp byte [ebp - 0xf], 0x3a
jne 0x403afa
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
test eax, eax
je 0x403b16
cmp byte [ebp - 0xf], 0x3a
jne 0x403b16
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x10]
push eax
call edi
test eax, eax
je 0x403b37
cmp byte [ebp - 0xf], 0x3a
jne 0x403b37
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 0xc]
cmp eax, 0x37
jne 0x403baa
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
test eax, eax
je 0x403b5b
cmp byte [ebp - 0xf], 0x3a
jne 0x403b5b
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
test eax, eax
je 0x403b77
cmp byte [ebp - 0xf], 0x3a
jne 0x403b77
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
test eax, eax
je 0x403b93
cmp byte [ebp - 0xf], 0x3a
jne 0x403b93
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
and byte [ebp - 0x12], 0
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 0x14], 0x42
mov byte [ebp - 0x13], 0x3a
call edi
jmp 0x403c68
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
test eax, eax
je 0x403bc6
cmp byte [ebp - 0x13], 0x3a
jne 0x403bc6
movzx eax, byte [ebp - 0x14]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
push eax
call edi
test eax, eax
je 0x403be1
cmp byte [ebp - 0x13], 0x3a
jne 0x403be1
movzx eax, byte [ebp - 0x14]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 0xc]
cmp eax, 0x37
jne 0x403c19
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
test eax, eax
je 0x403c05
cmp byte [ebp - 0x13], 0x3a
jne 0x403c05
movzx eax, byte [ebp - 0x14]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
and byte [ebp - 0x1a], 0
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 0x1c], 0x42
mov byte [ebp - 0x1b], 0x3a
call edi
jmp 0x403c3d
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
test eax, eax
je 0x403c3d
cmp byte [ebp - 0x13], 0x3a
jne 0x403c3d
movzx eax, byte [ebp - 0x14]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
test eax, eax
je 0x403c59
cmp byte [ebp - 0xf], 0x3a
jne 0x403c59
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push 0
push 1
push 0xc8d
call dword [sym.imp.KERNEL32.dll_OpenEventA]
lea eax, [ebp - 0x18]
push eax
call edi
test eax, eax
je 0x403c83
cmp byte [ebp - 0x17], 0x3a
jne 0x403c83
movzx eax, byte [ebp - 0x18]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 0xc]
cmp eax, 0x37
lea eax, [ebp - 0x18]
push eax
push ebx
jne 0x403cbb
call esi
test eax, eax
je 0x403ca7
cmp byte [ebp - 0x17], 0x3a
jne 0x403ca7
movzx eax, byte [ebp - 0x18]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
and byte [ebp - 0x1a], 0
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 0x1c], 0x42
mov byte [ebp - 0x1b], 0x3a
call edi
jmp 0x403cd2
call esi
test eax, eax
je 0x403cd2
cmp byte [ebp - 0x17], 0x3a
jne 0x403cd2
movzx eax, byte [ebp - 0x18]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
lea eax, [eax + esi - 0x6e]
mov dword [ebp + 0x10], eax
mov eax, dword [eax]
sub esi, eax
mov eax, dword [ebp + 0x1c]
lea ebx, [esi + eax]
push ebx
call sub.MFC42.DLL_operatornew
mov edi, eax
mov eax, dword [0x4293d0]
push ebx
push 0
push edi
call dword [eax + 0x21c]
add esi, 0xffffff92
push esi
push dword [ebp + 0xc]
push edi
call sub.MSVCRT.dll_memcpy
lea esi, [edi + ebx]
push 0x6e
push dword [ebp + 0x10]
lea eax, [esi - 0x6e]
push eax
mov dword [ebp - 0x1c], eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [0x4293d0]
add esp, 0x28
call dword [eax + 0x8c]
mov dword [esi - 0x66], eax
add eax, 0xfffff843
mov dword [edi + 0xffc], eax
cmp dword [esi - 0x6a], 0
jne 0x403d65
lea ecx, [ebp + 0xc]
call fcn.0040d0c1
and dword [ebp - 4], 0
push ebx
push edi
lea ecx, [ebp + 0xc]
call fcn.0040d110
or dword [ebp - 4], 0xffffffff
mov dword [esi - 0x6a], eax
lea ecx, [ebp + 0xc]
jmp 0x403d88
lea ecx, [ebp + 0xc]
call fcn.0040d0c1
push dword [esi - 0x6a]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 1
push ebx
push edi
call fcn.0040d1cc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040d0ef
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x18], 0
push 2
mov dword [ecx], eax
pop esi
je 0x403dc4
lea ecx, [ebp + 0xc]
call fcn.0040d2a8
push dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 0x14]
push edi
call fcn.0040d356
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040d2cd
mov eax, dword [0x4293d0]
push 0
push 0x80
push esi
push 0
push 1
push 0x40000000
push dword [ebp + 8]
call dword [eax + 0x50]
mov esi, eax
cmp esi, 0xffffffff
je 0x403e01
lea eax, [ebp + 0x1c]
push 0
push eax
mov eax, dword [0x4293d0]
push ebx
push edi
push esi
call dword [eax + 0x78]
mov eax, dword [0x4293d0]
push esi
call dword [eax + 0x44]
push edi
call fcn.00420f70
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18