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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
lea eax, [ebp - 0x14]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 0x14], ecx
jne 0x407acd
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 0x4078d9
cmp byte [ebp - 0xb], 0x3a
jne 0x4078d9
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 0x4078f5
cmp byte [ebp - 3], 0x3a
jne 0x4078f5
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 0x407911
cmp byte [ebp - 3], 0x3a
jne 0x407911
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 0x407932
cmp byte [ebp - 3], 0x3a
jne 0x407932
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
cmp eax, 0x37
jne 0x4079a5
lea eax, [ebp - 4]
push eax
push ebx
call esi
test eax, eax
je 0x407956
cmp byte [ebp - 3], 0x3a
jne 0x407956
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 0x407972
cmp byte [ebp - 3], 0x3a
jne 0x407972
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 0x40798e
cmp byte [ebp - 3], 0x3a
jne 0x40798e
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 0x407a63
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x4079c1
cmp byte [ebp - 7], 0x3a
jne 0x4079c1
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 0x4079dc
cmp byte [ebp - 7], 0x3a
jne 0x4079dc
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
cmp eax, 0x37
jne 0x407a14
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x407a00
cmp byte [ebp - 7], 0x3a
jne 0x407a00
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 0x407a38
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x407a38
cmp byte [ebp - 7], 0x3a
jne 0x407a38
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 0x407a54
cmp byte [ebp - 3], 0x3a
jne 0x407a54
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 0x407a7e
cmp byte [ebp - 0xb], 0x3a
jne 0x407a7e
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 0x407ab6
call esi
test eax, eax
je 0x407aa2
cmp byte [ebp - 0xb], 0x3a
jne 0x407aa2
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 0x407acd
call esi
test eax, eax
je 0x407acd
cmp byte [ebp - 0xb], 0x3a
jne 0x407acd
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x118]
push 0x104
push eax
mov eax, dword [0x4293d0]
push 0
call dword [eax + 0x74]
mov eax, dword [0x4293d0]
push 1
push 0
lea ecx, [ebp - 0x118]
push 0x2e
push ecx
lea esi, [eax + 0x21c]
call dword [eax + 0x1ec]
pop ecx
pop ecx
push eax
call dword [esi]
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call fcn.00407f73
pop edi
pop esi
pop ebx
leave
ret