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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 0x10]
push esi
push edi
test eax, eax
mov edi, ecx
jne 0x402bbb
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 0x4029bd
cmp byte [ebp - 0xb], 0x3a
jne 0x4029bd
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 0x4029da
cmp byte [ebp - 3], 0x3a
jne 0x4029da
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 0x4029f7
cmp byte [ebp - 3], 0x3a
jne 0x4029f7
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 4]
push eax
call ebx
test eax, eax
je 0x402a18
cmp byte [ebp - 3], 0x3a
jne 0x402a18
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
cmp eax, 0x37
jne 0x402a8e
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x402a3d
cmp byte [ebp - 3], 0x3a
jne 0x402a3d
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 0x402a5a
cmp byte [ebp - 3], 0x3a
jne 0x402a5a
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 0x402a77
cmp byte [ebp - 3], 0x3a
jne 0x402a77
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 ebx
jmp 0x402b50
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x402aab
cmp byte [ebp - 7], 0x3a
jne 0x402aab
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
push eax
call ebx
test eax, eax
je 0x402ac6
cmp byte [ebp - 7], 0x3a
jne 0x402ac6
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
cmp eax, 0x37
jne 0x402aff
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x402aeb
cmp byte [ebp - 7], 0x3a
jne 0x402aeb
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 ebx
jmp 0x402b24
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x402b24
cmp byte [ebp - 7], 0x3a
jne 0x402b24
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 0x402b41
cmp byte [ebp - 3], 0x3a
jne 0x402b41
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 ebx
test eax, eax
je 0x402b6b
cmp byte [ebp - 0xb], 0x3a
jne 0x402b6b
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
cmp eax, 0x37
lea eax, [ebp - 0xc]
push eax
push 3
jne 0x402ba4
call esi
test eax, eax
je 0x402b90
cmp byte [ebp - 0xb], 0x3a
jne 0x402b90
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 ebx
jmp 0x402bbb
call esi
test eax, eax
je 0x402bbb
cmp byte [ebp - 0xb], 0x3a
jne 0x402bbb
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
xor ebx, ebx
lea eax, [edi + 4]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x50]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402be4
push 3
jmp 0x402c2e
mov eax, dword [0x4293d0]
push ebx
push esi
call dword [eax + 0x38]
push eax
mov dword [edi + 0x114], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [edi + 0x110], eax
lea ecx, [ebp - 0x10]
push ebx
push ecx
push dword [edi + 0x114]
push eax
mov eax, dword [0x4293d0]
push esi
call dword [eax + 0x4c]
mov eax, dword [0x4293d0]
push esi
call dword [eax + 0x44]
mov eax, dword [edi + 0x114]
cmp eax, 0x2800
jae 0x402c31
push 2
pop eax
jmp 0x402c4f
mov edi, dword [edi + 0x110]
xor edx, edx
mov ecx, dword [edi + 0xffc]
add ecx, 0x7bd
cmp dword [edi + eax - 0x66], ecx
setne dl
inc edx
mov eax, edx
pop edi
pop esi
pop ebx
leave
ret