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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
test eax, eax
mov dword [edi], 0x4230b0
jne 0x40a626
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0xc]
push eax
push 3
pop ebx
push ebx
call esi
test eax, eax
je 0x40a42f
cmp byte [ebp - 0xb], 0x3a
jne 0x40a42f
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 4]
push eax
push ebx
call esi
test eax, eax
je 0x40a44b
cmp byte [ebp - 3], 0x3a
jne 0x40a44b
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 4]
push eax
push ebx
call esi
test eax, eax
je 0x40a467
cmp byte [ebp - 3], 0x3a
jne 0x40a467
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 4]
push eax
call edi
test eax, eax
je 0x40a488
cmp byte [ebp - 3], 0x3a
jne 0x40a488
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
cmp eax, 0x37
jne 0x40a4fb
lea eax, [ebp - 4]
push eax
push ebx
call esi
test eax, eax
je 0x40a4ac
cmp byte [ebp - 3], 0x3a
jne 0x40a4ac
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 4]
push eax
push ebx
call esi
test eax, eax
je 0x40a4c8
cmp byte [ebp - 3], 0x3a
jne 0x40a4c8
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 4]
push eax
push ebx
call esi
test eax, eax
je 0x40a4e4
cmp byte [ebp - 3], 0x3a
jne 0x40a4e4
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
and byte [ebp - 6], 0
lea eax, [ebp - 8]
push eax
mov byte [ebp - 8], 0x42
mov byte [ebp - 7], 0x3a
call edi
jmp 0x40a5b9
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x40a517
cmp byte [ebp - 7], 0x3a
jne 0x40a517
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
je 0x40a532
cmp byte [ebp - 7], 0x3a
jne 0x40a532
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
cmp eax, 0x37
jne 0x40a56a
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x40a556
cmp byte [ebp - 7], 0x3a
jne 0x40a556
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
and byte [ebp - 0xe], 0
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], 0x42
mov byte [ebp - 0xf], 0x3a
call edi
jmp 0x40a58e
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x40a58e
cmp byte [ebp - 7], 0x3a
jne 0x40a58e
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 4]
push eax
push ebx
call esi
test eax, eax
je 0x40a5aa
cmp byte [ebp - 3], 0x3a
jne 0x40a5aa
movzx eax, byte [ebp - 4]
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 - 0xc]
push eax
call edi
test eax, eax
je 0x40a5d4
cmp byte [ebp - 0xb], 0x3a
jne 0x40a5d4
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
cmp eax, 0x37
lea eax, [ebp - 0xc]
push eax
push ebx
jne 0x40a60c
call esi
test eax, eax
je 0x40a5f8
cmp byte [ebp - 0xb], 0x3a
jne 0x40a5f8
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
and byte [ebp - 0xe], 0
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], 0x42
mov byte [ebp - 0xf], 0x3a
call edi
jmp 0x40a623
call esi
test eax, eax
je 0x40a623
cmp byte [ebp - 0xb], 0x3a
jne 0x40a623
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
mov edi, dword [ebp - 0x14]
mov esi, 0x1fbd0
xor ebx, ebx
push esi
lea eax, [edi + 4]
push ebx
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x21c]
push esi
lea eax, [edi + 0x1fbd8]
push ebx
mov dword [edi + 0x1fbd4], ebx
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x21c]
add esp, 0x18
mov dword [edi + 0x3f7a8], ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret