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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
lea eax, [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
jne 0x409590
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 0x40939c
cmp byte [ebp - 0xb], 0x3a
jne 0x40939c
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 0x4093b8
cmp byte [ebp - 3], 0x3a
jne 0x4093b8
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 0x4093d4
cmp byte [ebp - 3], 0x3a
jne 0x4093d4
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 0x4093f5
cmp byte [ebp - 3], 0x3a
jne 0x4093f5
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 0xc]
cmp eax, 0x37
jne 0x409468
lea eax, [ebp - 4]
push eax
push ebx
call esi
test eax, eax
je 0x409419
cmp byte [ebp - 3], 0x3a
jne 0x409419
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 0x409435
cmp byte [ebp - 3], 0x3a
jne 0x409435
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 0x409451
cmp byte [ebp - 3], 0x3a
jne 0x409451
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 0x409526
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x409484
cmp byte [ebp - 7], 0x3a
jne 0x409484
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 0x40949f
cmp byte [ebp - 7], 0x3a
jne 0x40949f
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 0xc]
cmp eax, 0x37
jne 0x4094d7
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x4094c3
cmp byte [ebp - 7], 0x3a
jne 0x4094c3
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 0x4094fb
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x4094fb
cmp byte [ebp - 7], 0x3a
jne 0x4094fb
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 0x409517
cmp byte [ebp - 3], 0x3a
jne 0x409517
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 0x409541
cmp byte [ebp - 0xb], 0x3a
jne 0x409541
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 0x409579
call esi
test eax, eax
je 0x409565
cmp byte [ebp - 0xb], 0x3a
jne 0x409565
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 0x409590
call esi
test eax, eax
je 0x409590
cmp byte [ebp - 0xb], 0x3a
jne 0x409590
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push dword [ebp + 8]
mov eax, dword [0x4293d0]
xor ebx, ebx
push ebx
push 0x410
call dword [eax + 0x18]
mov edi, eax
cmp edi, ebx
je 0x40965d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push 4
push eax
mov eax, dword [0x4293d0]
push edi
call dword [eax + 0xd8]
test eax, eax
je 0x409654
mov esi, 0x104
lea eax, [ebp - 0x114]
push esi
push ebx
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x21c]
add esp, 0xc
lea eax, [ebp - 0x114]
push esi
push eax
push dword [ebp + 8]
mov eax, dword [0x4293d0]
push edi
call dword [eax + 0xd4]
test eax, eax
je 0x409654
push esi
lea eax, [ebp - 0x218]
push ebx
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x21c]
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0xb4]
test eax, eax
lea eax, [ebp - 0x218]
jne 0x409643
lea eax, [ebp - 0x114]
push eax
mov eax, dword [0x4293d0]
push dword [ebp + 0xc]
call dword [eax + 0x1e8]
pop ecx
pop ecx
mov eax, dword [0x4293d0]
push edi
call dword [eax + 0x44]
pop edi
pop esi
pop ebx
leave
ret 8