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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
lea eax, [ebp - 0x14]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 0x14], ecx
jne 0x40366c
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 0x403478
cmp byte [ebp - 0xb], 0x3a
jne 0x403478
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 0x403494
cmp byte [ebp - 3], 0x3a
jne 0x403494
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 0x4034b0
cmp byte [ebp - 3], 0x3a
jne 0x4034b0
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 0x4034d1
cmp byte [ebp - 3], 0x3a
jne 0x4034d1
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
cmp eax, 0x37
jne 0x403544
lea eax, [ebp - 4]
push eax
push ebx
call esi
test eax, eax
je 0x4034f5
cmp byte [ebp - 3], 0x3a
jne 0x4034f5
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 0x403511
cmp byte [ebp - 3], 0x3a
jne 0x403511
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 0x40352d
cmp byte [ebp - 3], 0x3a
jne 0x40352d
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 0x403602
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x403560
cmp byte [ebp - 7], 0x3a
jne 0x403560
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 0x40357b
cmp byte [ebp - 7], 0x3a
jne 0x40357b
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
cmp eax, 0x37
jne 0x4035b3
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x40359f
cmp byte [ebp - 7], 0x3a
jne 0x40359f
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 0x4035d7
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x4035d7
cmp byte [ebp - 7], 0x3a
jne 0x4035d7
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 0x4035f3
cmp byte [ebp - 3], 0x3a
jne 0x4035f3
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 0x40361d
cmp byte [ebp - 0xb], 0x3a
jne 0x40361d
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
cmp eax, 0x37
lea eax, [ebp - 0xc]
push eax
push ebx
jne 0x403655
call esi
test eax, eax
je 0x403641
cmp byte [ebp - 0xb], 0x3a
jne 0x403641
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 0x40366c
call esi
test eax, eax
je 0x40366c
cmp byte [ebp - 0xb], 0x3a
jne 0x40366c
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
mov eax, dword [ebp - 0x14]
lea edi, [eax + 4]
lea eax, [ebp - 0x118]
push edi
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x1e8]
mov eax, dword [0x4293d0]
pop ecx
pop ecx
push 1
push 0
lea ecx, [ebp - 0x118]
push 0x2e
push ecx
lea esi, [eax + 0x21c]
call dword [eax + 0x1ec]
pop ecx
pop ecx
push eax
call dword [esi]
mov esi, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x118]
mov ecx, esi
push eax
call fcn.00407f73
test eax, eax
jne 0x4036e3
lea eax, [ebp - 0x118]
mov ecx, esi
push eax
push edi
call fcn.004081e6
test eax, eax
je 0x4036ea
lea eax, [ebp - 0x118]
mov ecx, esi
push eax
call fcn.00403e19
mov ecx, esi
call fcn.00403191
pop edi
pop esi
pop ebx
leave
ret