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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b8
push ebx
lea eax, [ebp + 0xc]
xor ebx, ebx
push esi
test eax, eax
push edi
mov dword [ebp - 0x14], ecx
jne 0x407d5c
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 0x407b63
cmp byte [ebp - 0xb], 0x3a
jne 0x407b63
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 0x407b80
cmp byte [ebp - 3], 0x3a
jne 0x407b80
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 0x407b9d
cmp byte [ebp - 3], 0x3a
jne 0x407b9d
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 0x407bbe
cmp byte [ebp - 3], 0x3a
jne 0x407bbe
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 0xc]
cmp eax, 0x37
jne 0x407c33
lea eax, [ebp - 4]
push eax
push 3
call esi
test eax, eax
je 0x407be3
cmp byte [ebp - 3], 0x3a
jne 0x407be3
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 0x407c00
cmp byte [ebp - 3], 0x3a
jne 0x407c00
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 0x407c1d
cmp byte [ebp - 3], 0x3a
jne 0x407c1d
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 0x407cf2
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x407c50
cmp byte [ebp - 7], 0x3a
jne 0x407c50
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 0x407c6b
cmp byte [ebp - 7], 0x3a
jne 0x407c6b
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 0xc]
cmp eax, 0x37
jne 0x407ca3
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x407c90
cmp byte [ebp - 7], 0x3a
jne 0x407c90
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 0x407cc7
push ebx
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 8]
push eax
push 3
call esi
test eax, eax
je 0x407cc7
cmp byte [ebp - 7], 0x3a
jne 0x407cc7
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 0x407ce4
cmp byte [ebp - 3], 0x3a
jne 0x407ce4
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 0x407d0d
cmp byte [ebp - 0xb], 0x3a
jne 0x407d0d
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 3
jne 0x407d45
call esi
test eax, eax
je 0x407d32
cmp byte [ebp - 0xb], 0x3a
jne 0x407d32
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 0x407d5c
call esi
test eax, eax
je 0x407d5c
cmp byte [ebp - 0xb], 0x3a
jne 0x407d5c
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
mov esi, 0x104
lea eax, [ebp - 0x118]
push esi
push ebx
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x21c]
add esp, 0xc
lea eax, [ebp - 0x118]
push esi
push eax
mov eax, dword [0x4293d0]
push ebx
call dword [eax + 0x74]
mov eax, dword [0x4293d0]
push 1
push ebx
push 0x2e
pop edi
lea ecx, [ebp - 0x118]
push edi
push ecx
lea esi, [eax + 0x21c]
call dword [eax + 0x1ec]
pop ecx
pop ecx
push eax
call dword [esi]
add esp, 0xc
lea eax, [ebp - 0x348]
push ebx
push 0x65
pop esi
push esi
push 0x78
push esi
push edi
push 0x73
push 0x25
push eax
call fcn.004047d8
add esp, 0x20
lea eax, [ebp - 0x280]
push ebx
push 0x6b
push 0x61
push 0x62
push edi
push 0x73
push 0x25
push eax
call fcn.004047d8
add esp, 0x20
lea eax, [ebp - 0x2e4]
push ebx
push 0x70
push 0x6d
push esi
push 0x74
push edi
push 0x73
push 0x25
push eax
call fcn.004047d8
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x1dc]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x4b0]
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x1e8]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x5b4]
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x1dc]
add esp, 0x44
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x6b8]
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x1dc]
mov edi, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x5b4]
mov ecx, edi
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004081e6
test eax, eax
je 0x407f6c
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
lea eax, [ebp - 0x4b0]
push eax
call fcn.004081e6
test eax, eax
je 0x407f6c
push ebx
push 0x6e
push esi
push 0x70
lea eax, [ebp - 0x3ac]
push 0x6f
push eax
call fcn.004047d8
add esp, 0x18
lea eax, [ebp - 0x21c]
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x3ac]
push eax
mov eax, dword [0x4293d0]
push ebx
call dword [eax + 0x118]
mov eax, dword [0x4293d0]
push 0x64
call dword [eax + 0x3c]
lea eax, [ebp - 0x4b0]
mov ecx, edi
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004081e6
test eax, eax
je 0x407f6c
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
lea eax, [ebp - 0x5b4]
push eax
call fcn.004081e6
test eax, eax
je 0x407f6c
push ebx
push 0x80
push 2
push ebx
push 1
lea eax, [ebp - 0x6b8]
push 0x40000000
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x50]
cmp eax, 0xffffffff
je 0x407f6c
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x44]
lea eax, [ebp - 0x6b8]
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x40]
pop edi
pop esi
pop ebx
leave
ret 8