Function at 0x40451c
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 0x404755
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 0x40455c
cmp byte [ebp - 0xb], 0x3a
jne 0x40455c
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 0x404579
cmp byte [ebp - 3], 0x3a
jne 0x404579
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 0x404596
cmp byte [ebp - 3], 0x3a
jne 0x404596
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 0x4045b7
cmp byte [ebp - 3], 0x3a
jne 0x4045b7
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
cmp eax, 0x37
jne 0x40462c
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x4045dc
cmp byte [ebp - 3], 0x3a
jne 0x4045dc
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 0x4045f9
cmp byte [ebp - 3], 0x3a
jne 0x4045f9
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 0x404616
cmp byte [ebp - 3], 0x3a
jne 0x404616
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 0x4046eb
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x404649
cmp byte [ebp - 7], 0x3a
jne 0x404649
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 0x404664
cmp byte [ebp - 7], 0x3a
jne 0x404664
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
cmp eax, 0x37
jne 0x40469c
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x404689
cmp byte [ebp - 7], 0x3a
jne 0x404689
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 0x4046c0
push ebx
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x4046c0
cmp byte [ebp - 7], 0x3a
jne 0x4046c0
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 0x4046dd
cmp byte [ebp - 3], 0x3a
jne 0x4046dd
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 0x404706
cmp byte [ebp - 0xb], 0x3a
jne 0x404706
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 0x40473e
call esi
test eax, eax
je 0x40472b
cmp byte [ebp - 0xb], 0x3a
jne 0x40472b
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 0x404755
call esi
test eax, eax
je 0x404755
cmp byte [ebp - 0xb], 0x3a
jne 0x404755
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]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x4047d4
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x44]
push 1
pop eax
leave
ret
xor eax, eax
leave
ret