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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push ebx
push esi
push edi
test eax, eax
mov ebx, ecx
jne 0x40b02a
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
call esi
test eax, eax
je 0x40ae2c
cmp byte [ebp - 0xb], 0x3a
jne 0x40ae2c
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x40ae49
cmp byte [ebp - 3], 0x3a
jne 0x40ae49
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x40ae66
cmp byte [ebp - 3], 0x3a
jne 0x40ae66
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 0x40ae87
cmp byte [ebp - 3], 0x3a
jne 0x40ae87
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
cmp eax, 0x37
jne 0x40aefd
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x40aeac
cmp byte [ebp - 3], 0x3a
jne 0x40aeac
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x40aec9
cmp byte [ebp - 3], 0x3a
jne 0x40aec9
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x40aee6
cmp byte [ebp - 3], 0x3a
jne 0x40aee6
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 0x40afbf
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x40af1a
cmp byte [ebp - 7], 0x3a
jne 0x40af1a
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 0x40af35
cmp byte [ebp - 7], 0x3a
jne 0x40af35
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
cmp eax, 0x37
jne 0x40af6e
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x40af5a
cmp byte [ebp - 7], 0x3a
jne 0x40af5a
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 0x40af93
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x40af93
cmp byte [ebp - 7], 0x3a
jne 0x40af93
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x40afb0
cmp byte [ebp - 3], 0x3a
jne 0x40afb0
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 0x40afda
cmp byte [ebp - 0xb], 0x3a
jne 0x40afda
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
cmp eax, 0x37
lea eax, [ebp - 0xc]
push eax
push 3
jne 0x40b013
call esi
test eax, eax
je 0x40afff
cmp byte [ebp - 0xb], 0x3a
jne 0x40afff
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 0x40b02a
call esi
test eax, eax
je 0x40b02a
cmp byte [ebp - 0xb], 0x3a
jne 0x40b02a
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
mov eax, dword [ebx + 0x1fbd4]
mov esi, 0x1fbd0
mov dword [ebx + 0x3f7a8], eax
lea edi, [ebx + 4]
push esi
lea eax, [ebx + 0x1fbd8]
push edi
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [0x4293d0]
push esi
push 0
push edi
call dword [eax + 0x21c]
add esp, 0x18
and dword [ebx + 0x1fbd4], 0
pop edi
pop esi
pop ebx
leave
ret