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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
lea eax, [ebp + 8]
push ebx
push esi
push edi
test eax, eax
jne 0x40841d
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 0x408229
cmp byte [ebp - 0xb], 0x3a
jne 0x408229
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 0x408245
cmp byte [ebp - 3], 0x3a
jne 0x408245
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 0x408261
cmp byte [ebp - 3], 0x3a
jne 0x408261
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 0x408282
cmp byte [ebp - 3], 0x3a
jne 0x408282
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 8]
cmp eax, 0x37
jne 0x4082f5
lea eax, [ebp - 4]
push eax
push ebx
call esi
test eax, eax
je 0x4082a6
cmp byte [ebp - 3], 0x3a
jne 0x4082a6
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 0x4082c2
cmp byte [ebp - 3], 0x3a
jne 0x4082c2
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 0x4082de
cmp byte [ebp - 3], 0x3a
jne 0x4082de
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 0x4083b3
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x408311
cmp byte [ebp - 7], 0x3a
jne 0x408311
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 0x40832c
cmp byte [ebp - 7], 0x3a
jne 0x40832c
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 8]
cmp eax, 0x37
jne 0x408364
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x408350
cmp byte [ebp - 7], 0x3a
jne 0x408350
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 0x408388
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x408388
cmp byte [ebp - 7], 0x3a
jne 0x408388
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 0x4083a4
cmp byte [ebp - 3], 0x3a
jne 0x4083a4
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 0x4083ce
cmp byte [ebp - 0xb], 0x3a
jne 0x4083ce
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 0x408406
call esi
test eax, eax
je 0x4083f2
cmp byte [ebp - 0xb], 0x3a
jne 0x4083f2
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 0x40841d
call esi
test eax, eax
je 0x40841d
cmp byte [ebp - 0xb], 0x3a
jne 0x40841d
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
mov esi, 0x100
xor edi, edi
push esi
lea eax, [ebp - 0x130]
push edi
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x21c]
push dword [ebp + 8]
lea eax, [ebp - 0x130]
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x1e8]
push esi
lea eax, [ebp - 0x230]
push edi
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x21c]
push dword [ebp + 0xc]
lea eax, [ebp - 0x230]
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x1e8]
push 0x1e
lea eax, [ebp - 0x30]
push edi
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x21c]
lea eax, [ebp - 0x130]
add esp, 0x34
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [0x4293d0]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 4
mov word [ebp - 0x20], 0x614
call dword [eax + 0x114]
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
leave
ret 8