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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
lea eax, [ebp - 0x10]
xor ebx, ebx
push esi
test eax, eax
push edi
jne 0x404a28
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 0x40482f
cmp byte [ebp - 0xb], 0x3a
jne 0x40482f
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 0x40484c
cmp byte [ebp - 3], 0x3a
jne 0x40484c
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 0x404869
cmp byte [ebp - 3], 0x3a
jne 0x404869
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 0x40488a
cmp byte [ebp - 3], 0x3a
jne 0x40488a
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
cmp eax, 0x37
jne 0x4048ff
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x4048af
cmp byte [ebp - 3], 0x3a
jne 0x4048af
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 0x4048cc
cmp byte [ebp - 3], 0x3a
jne 0x4048cc
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 0x4048e9
cmp byte [ebp - 3], 0x3a
jne 0x4048e9
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 edi
jmp 0x4049be
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x40491c
cmp byte [ebp - 7], 0x3a
jne 0x40491c
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 0x404937
cmp byte [ebp - 7], 0x3a
jne 0x404937
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
cmp eax, 0x37
jne 0x40496f
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x40495c
cmp byte [ebp - 7], 0x3a
jne 0x40495c
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 edi
jmp 0x404993
push ebx
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x404993
cmp byte [ebp - 7], 0x3a
jne 0x404993
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 0x4049b0
cmp byte [ebp - 3], 0x3a
jne 0x4049b0
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 edi
test eax, eax
je 0x4049d9
cmp byte [ebp - 0xb], 0x3a
jne 0x4049d9
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 0x404a11
call esi
test eax, eax
je 0x4049fe
cmp byte [ebp - 0xb], 0x3a
jne 0x4049fe
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 edi
jmp 0x404a28
call esi
test eax, eax
je 0x404a28
cmp byte [ebp - 0xb], 0x3a
jne 0x404a28
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push ebx
push 0x7d
push 0x39
push 0x39
push 0x31
push 0x37
push 0x38
push 0x33
pop eax
push eax
push 0x32
push eax
push 0x36
push 0x32
push 0x46
push 0x32
push 0x2d
pop ecx
push ecx
push 0x36
push 0x31
push 0x43
push 0x39
push ecx
push eax
push 0x65
push 0x31
push 0x34
push ecx
push eax
push 0x34
push 0x30
push 0x46
push ecx
push 0x44
push 0x46
push 0x30
push 0x34
push eax
push 0x37
push eax
push 0x41
lea eax, [ebp - 0x74]
push 0x7b
push eax
call fcn.004047d8
add esp, 0xa0
lea eax, [ebp - 0x74]
push eax
mov eax, dword [0x4293d0]
push ebx
push 0x1f0003
call dword [eax + 0x30]
mov esi, eax
cmp esi, ebx
je 0x404aaa
mov eax, dword [0x4293d0]
push esi
call dword [eax + 0x48]
mov eax, dword [0x4293d0]
push esi
call dword [eax + 0x44]
pop edi
pop esi
pop ebx
leave
ret