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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
lea eax, [ebp + 8]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 0x14], ecx
jne 0x4091ea
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 0x408ff6
cmp byte [ebp - 0xb], 0x3a
jne 0x408ff6
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 0x409012
cmp byte [ebp - 3], 0x3a
jne 0x409012
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 0x40902e
cmp byte [ebp - 3], 0x3a
jne 0x40902e
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 0x40904f
cmp byte [ebp - 3], 0x3a
jne 0x40904f
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 8]
cmp eax, 0x37
jne 0x4090c2
lea eax, [ebp - 4]
push eax
push ebx
call esi
test eax, eax
je 0x409073
cmp byte [ebp - 3], 0x3a
jne 0x409073
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 0x40908f
cmp byte [ebp - 3], 0x3a
jne 0x40908f
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 0x4090ab
cmp byte [ebp - 3], 0x3a
jne 0x4090ab
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 0x409180
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x4090de
cmp byte [ebp - 7], 0x3a
jne 0x4090de
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 0x4090f9
cmp byte [ebp - 7], 0x3a
jne 0x4090f9
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 8]
cmp eax, 0x37
jne 0x409131
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x40911d
cmp byte [ebp - 7], 0x3a
jne 0x40911d
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 0x409155
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x409155
cmp byte [ebp - 7], 0x3a
jne 0x409155
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 0x409171
cmp byte [ebp - 3], 0x3a
jne 0x409171
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 0x40919b
cmp byte [ebp - 0xb], 0x3a
jne 0x40919b
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 8]
cmp eax, 0x37
lea eax, [ebp - 0xc]
push eax
push ebx
jne 0x4091d3
call esi
test eax, eax
je 0x4091bf
cmp byte [ebp - 0xb], 0x3a
jne 0x4091bf
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 0x4091ea
call esi
test eax, eax
je 0x4091ea
cmp byte [ebp - 0xb], 0x3a
jne 0x4091ea
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push dword [ebp + 8]
mov eax, dword [0x4293d0]
call dword [eax + 0x1f0]
test eax, eax
pop ecx
je 0x409350
mov esi, 0x104
xor edi, edi
push esi
lea eax, [ebp - 0x118]
push edi
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x21c]
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x1e8]
lea eax, [ebp - 0x118]
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x210]
add esp, 0x18
lea eax, [ebp - 0x280]
push esi
push eax
mov eax, dword [0x4293d0]
push edi
call dword [eax + 0x74]
lea eax, [ebp - 0x280]
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x210]
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x118]
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x1e0]
add esp, 0xc
test eax, eax
je 0x409350
cmp byte [ebp - 0x117], 0x3a
jne 0x409350
cmp byte [ebp - 0x116], 0x5c
jne 0x409350
lea eax, [ebp - 0x118]
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x1f0]
mov esi, eax
pop ecx
lea eax, [ebp - 0x118]
push edi
sub eax, 4
push 0x65
add esi, eax
push 0x78
push 0x65
lea eax, [ebp - 0x17c]
push 0x2e
push eax
call fcn.004047d8
lea eax, [ebp - 0x17c]
push eax
mov eax, dword [0x4293d0]
push esi
call dword [eax + 0x1e0]
add esp, 0x20
test eax, eax
jne 0x409350
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00409664
test eax, eax
je 0x409350
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00409b85
test eax, eax
je 0x409350
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x118]
push eax
call fcn.0040990c
cmp eax, edi
je 0x409350
cmp eax, 0xa00000
ja 0x409350
cmp eax, 0x2800
jb 0x409350
push 1
pop eax
jmp 0x409352
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4