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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 0x14], ecx
jne 0x40ad9a
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 0x40aba6
cmp byte [ebp - 0xb], 0x3a
jne 0x40aba6
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 0x40abc2
cmp byte [ebp - 3], 0x3a
jne 0x40abc2
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 0x40abde
cmp byte [ebp - 3], 0x3a
jne 0x40abde
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 0x40abff
cmp byte [ebp - 3], 0x3a
jne 0x40abff
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 0xc]
cmp eax, 0x37
jne 0x40ac72
lea eax, [ebp - 4]
push eax
push ebx
call esi
test eax, eax
je 0x40ac23
cmp byte [ebp - 3], 0x3a
jne 0x40ac23
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 0x40ac3f
cmp byte [ebp - 3], 0x3a
jne 0x40ac3f
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 0x40ac5b
cmp byte [ebp - 3], 0x3a
jne 0x40ac5b
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 0x40ad30
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x40ac8e
cmp byte [ebp - 7], 0x3a
jne 0x40ac8e
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 0x40aca9
cmp byte [ebp - 7], 0x3a
jne 0x40aca9
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 0xc]
cmp eax, 0x37
jne 0x40ace1
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x40accd
cmp byte [ebp - 7], 0x3a
jne 0x40accd
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 0x40ad05
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x40ad05
cmp byte [ebp - 7], 0x3a
jne 0x40ad05
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 0x40ad21
cmp byte [ebp - 3], 0x3a
jne 0x40ad21
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 0x40ad4b
cmp byte [ebp - 0xb], 0x3a
jne 0x40ad4b
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 0x40ad83
call esi
test eax, eax
je 0x40ad6f
cmp byte [ebp - 0xb], 0x3a
jne 0x40ad6f
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 0x40ad9a
call esi
test eax, eax
je 0x40ad9a
cmp byte [ebp - 0xb], 0x3a
jne 0x40ad9a
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x14]
xor edi, edi
mov eax, dword [eax + 0x1fbd4]
mov dword [ecx], eax
cmp dword [ebx + 0x1fbd4], edi
jle 0x40ade5
mov eax, dword [ebp + 8]
add ebx, 4
mov dword [ebp + 0xc], eax
mov esi, 0x104
mov eax, dword [0x4293d0]
push ebx
push dword [ebp + 0xc]
call dword [eax + 0x1e8]
mov eax, dword [ebp - 0x14]
add dword [ebp + 0xc], esi
inc edi
pop ecx
add ebx, esi
cmp edi, dword [eax + 0x1fbd4]
pop ecx
jl 0x40adc3
pop edi
pop esi
pop ebx
leave
ret 8