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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp + 8]
push ebx
push esi
push edi
test eax, eax
jne 0x40404d
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 0x403e59
cmp byte [ebp - 0xb], 0x3a
jne 0x403e59
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 0x403e75
cmp byte [ebp - 3], 0x3a
jne 0x403e75
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 0x403e91
cmp byte [ebp - 3], 0x3a
jne 0x403e91
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 0x403eb2
cmp byte [ebp - 3], 0x3a
jne 0x403eb2
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 8]
cmp eax, 0x37
jne 0x403f25
lea eax, [ebp - 4]
push eax
push ebx
call esi
test eax, eax
je 0x403ed6
cmp byte [ebp - 3], 0x3a
jne 0x403ed6
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 0x403ef2
cmp byte [ebp - 3], 0x3a
jne 0x403ef2
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 0x403f0e
cmp byte [ebp - 3], 0x3a
jne 0x403f0e
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 0x403fe3
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x403f41
cmp byte [ebp - 7], 0x3a
jne 0x403f41
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 0x403f5c
cmp byte [ebp - 7], 0x3a
jne 0x403f5c
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 8]
cmp eax, 0x37
jne 0x403f94
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x403f80
cmp byte [ebp - 7], 0x3a
jne 0x403f80
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 0x403fb8
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x403fb8
cmp byte [ebp - 7], 0x3a
jne 0x403fb8
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 0x403fd4
cmp byte [ebp - 3], 0x3a
jne 0x403fd4
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 0x403ffe
cmp byte [ebp - 0xb], 0x3a
jne 0x403ffe
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 8]
cmp eax, 0x37
lea eax, [ebp - 0xc]
push eax
push ebx
jne 0x404036
call esi
test eax, eax
je 0x404022
cmp byte [ebp - 0xb], 0x3a
jne 0x404022
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 0x40404d
call esi
test eax, eax
je 0x40404d
cmp byte [ebp - 0xb], 0x3a
jne 0x40404d
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push dword [ebp + 8]
mov eax, dword [0x4293d0]
call dword [eax + 0x94]
pop edi
pop esi
cmp eax, 0xffffffff
pop ebx
jne 0x404067
xor eax, eax
jmp 0x404078
or al, 2
push eax
mov eax, dword [0x4293d0]
push dword [ebp + 8]
call dword [eax + 0x90]
leave
ret 4