Function at 0x40a8c3
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
mov ebx, ecx
jne 0x40ab01
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 0x40a903
cmp byte [ebp - 0xb], 0x3a
jne 0x40a903
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 0x40a920
cmp byte [ebp - 3], 0x3a
jne 0x40a920
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 0x40a93d
cmp byte [ebp - 3], 0x3a
jne 0x40a93d
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 0x40a95e
cmp byte [ebp - 3], 0x3a
jne 0x40a95e
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 8]
cmp eax, 0x37
jne 0x40a9d4
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x40a983
cmp byte [ebp - 3], 0x3a
jne 0x40a983
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 0x40a9a0
cmp byte [ebp - 3], 0x3a
jne 0x40a9a0
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 0x40a9bd
cmp byte [ebp - 3], 0x3a
jne 0x40a9bd
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 0x40aa96
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x40a9f1
cmp byte [ebp - 7], 0x3a
jne 0x40a9f1
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 0x40aa0c
cmp byte [ebp - 7], 0x3a
jne 0x40aa0c
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 8]
cmp eax, 0x37
jne 0x40aa45
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x40aa31
cmp byte [ebp - 7], 0x3a
jne 0x40aa31
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 0x40aa6a
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x40aa6a
cmp byte [ebp - 7], 0x3a
jne 0x40aa6a
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 0x40aa87
cmp byte [ebp - 3], 0x3a
jne 0x40aa87
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 0x40aab1
cmp byte [ebp - 0xb], 0x3a
jne 0x40aab1
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 3
jne 0x40aaea
call esi
test eax, eax
je 0x40aad6
cmp byte [ebp - 0xb], 0x3a
jne 0x40aad6
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 0x40ab01
call esi
test eax, eax
je 0x40ab01
cmp byte [ebp - 0xb], 0x3a
jne 0x40ab01
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
xor esi, esi
cmp dword [ebx + 0x1fbd4], esi
jle 0x40ab32
lea edi, [ebx + 4]
push dword [ebp + 8]
mov eax, dword [0x4293d0]
push edi
call dword [eax + 0x1e0]
pop ecx
test eax, eax
pop ecx
je 0x40ab5c
inc esi
add edi, 0x104
cmp esi, dword [ebx + 0x1fbd4]
jl 0x40ab0e
inc dword [ebx + 0x1fbd4]
mov eax, dword [ebx + 0x1fbd4]
imul eax, eax, 0x104
push dword [ebp + 8]
lea eax, [eax + ebx - 0x100]
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x1e8]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4