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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x10]
xor ebx, ebx
test eax, eax
mov dword [edi], 0x4230b4
jne 0x40b592
push ebx
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 0x40b387
cmp byte [ebp - 0xb], 0x3a
jne 0x40b387
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 0x40b3a4
cmp byte [ebp - 3], 0x3a
jne 0x40b3a4
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 0x40b3c1
cmp byte [ebp - 3], 0x3a
jne 0x40b3c1
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40b3e0
cmp byte [ebp - 3], 0x3a
jne 0x40b3e0
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
cmp eax, 0x37
jne 0x40b459
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x40b405
cmp byte [ebp - 3], 0x3a
jne 0x40b405
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 0x40b422
cmp byte [ebp - 3], 0x3a
jne 0x40b422
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 0x40b43f
cmp byte [ebp - 3], 0x3a
jne 0x40b43f
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x42
push eax
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], bl
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x40b520
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x40b476
cmp byte [ebp - 7], 0x3a
jne 0x40b476
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40b495
cmp byte [ebp - 7], 0x3a
jne 0x40b495
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
cmp eax, 0x37
jne 0x40b4d1
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x40b4ba
cmp byte [ebp - 7], 0x3a
jne 0x40b4ba
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
mov byte [ebp - 0x10], 0x42
push eax
mov byte [ebp - 0xf], 0x3a
mov byte [ebp - 0xe], bl
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x40b4f5
push ebx
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x40b4f5
cmp byte [ebp - 7], 0x3a
jne 0x40b4f5
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 0x40b512
cmp byte [ebp - 3], 0x3a
jne 0x40b512
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
push 1
push 0xc8d
call dword [sym.imp.KERNEL32.dll_OpenEventA]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40b53f
cmp byte [ebp - 0xb], 0x3a
jne 0x40b53f
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 0x40b57b
call esi
test eax, eax
je 0x40b564
cmp byte [ebp - 0xb], 0x3a
jne 0x40b564
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
mov byte [ebp - 0x10], 0x42
push eax
mov byte [ebp - 0xf], 0x3a
mov byte [ebp - 0xe], bl
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x40b592
call esi
test eax, eax
je 0x40b592
cmp byte [ebp - 0xb], 0x3a
jne 0x40b592
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
mov eax, dword [0x4293d0]
push ebx
push ebx
push 1
push ebx
call dword [eax + 0x68]
mov dword [edi + 0x18], eax
lea eax, [ebp - 0x114]
push 0x104
mov dword [edi + 0x1c], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
push eax
mov eax, dword [0x4293d0]
push ebx
call dword [eax + 0x74]
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x114]
push 0x80000000
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x50]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b618
mov eax, dword [0x4293d0]
push ebx
push esi
call dword [eax + 0x38]
push eax
mov dword [edi + 8], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [edi + 4], eax
lea ecx, [ebp - 0x10]
push ebx
push ecx
push dword [edi + 8]
push eax
mov eax, dword [0x4293d0]
push esi
call dword [eax + 0x4c]
mov eax, dword [0x4293d0]
push esi
call dword [eax + 0x44]
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret