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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
lea eax, [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 0x14], ecx
jne 0x408ecc
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 0x408cd8
cmp byte [ebp - 0xb], 0x3a
jne 0x408cd8
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 0x408cf4
cmp byte [ebp - 3], 0x3a
jne 0x408cf4
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 0x408d10
cmp byte [ebp - 3], 0x3a
jne 0x408d10
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 0x408d31
cmp byte [ebp - 3], 0x3a
jne 0x408d31
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 0xc]
cmp eax, 0x37
jne 0x408da4
lea eax, [ebp - 4]
push eax
push ebx
call esi
test eax, eax
je 0x408d55
cmp byte [ebp - 3], 0x3a
jne 0x408d55
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 0x408d71
cmp byte [ebp - 3], 0x3a
jne 0x408d71
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 0x408d8d
cmp byte [ebp - 3], 0x3a
jne 0x408d8d
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 0x408e62
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x408dc0
cmp byte [ebp - 7], 0x3a
jne 0x408dc0
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 0x408ddb
cmp byte [ebp - 7], 0x3a
jne 0x408ddb
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 0xc]
cmp eax, 0x37
jne 0x408e13
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x408dff
cmp byte [ebp - 7], 0x3a
jne 0x408dff
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 0x408e37
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x408e37
cmp byte [ebp - 7], 0x3a
jne 0x408e37
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 0x408e53
cmp byte [ebp - 3], 0x3a
jne 0x408e53
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 0x408e7d
cmp byte [ebp - 0xb], 0x3a
jne 0x408e7d
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 0xc]
cmp eax, 0x37
lea eax, [ebp - 0xc]
push eax
push ebx
jne 0x408eb5
call esi
test eax, eax
je 0x408ea1
cmp byte [ebp - 0xb], 0x3a
jne 0x408ea1
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 0x408ecc
call esi
test eax, eax
je 0x408ecc
cmp byte [ebp - 0xb], 0x3a
jne 0x408ecc
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, dword [ebp - 0x14]
lea edi, [eax + 4]
mov ecx, edi
call fcn.0040adec
mov eax, dword [0x4293d0]
push 0
push 2
call dword [eax + 0xc]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408fa9
mov esi, 0x128
lea eax, [ebp - 0x13c]
push esi
push 0
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x21c]
add esp, 0xc
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x13c], esi
push eax
mov eax, dword [0x4293d0]
push ebx
call dword [eax + 8]
test eax, eax
je 0x408fa9
push 0x104
lea eax, [ebp - 0x240]
push 0
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x21c]
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x134]
call fcn.00409359
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x240]
push eax
call fcn.00408fb0
test eax, eax
je 0x408f7f
lea eax, [ebp - 0x240]
mov ecx, edi
push eax
call fcn.0040a8c3
lea eax, [ebp - 0x13c]
push eax
mov eax, dword [0x4293d0]
push ebx
call dword [eax + 4]
test eax, eax
jne 0x408f2d
mov eax, dword [0x4293d0]
push ebx
call dword [eax + 0x44]
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
call fcn.0040b06a
pop edi
pop esi
pop ebx
leave
ret 8