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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 0x14], ecx
jne 0x40b2a1
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 0x40b0ad
cmp byte [ebp - 0xb], 0x3a
jne 0x40b0ad
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 0x40b0c9
cmp byte [ebp - 3], 0x3a
jne 0x40b0c9
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 0x40b0e5
cmp byte [ebp - 3], 0x3a
jne 0x40b0e5
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 0x40b106
cmp byte [ebp - 3], 0x3a
jne 0x40b106
movzx eax, byte [ebp - 4]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 0xc]
cmp eax, 0x37
jne 0x40b179
lea eax, [ebp - 4]
push eax
push ebx
call esi
test eax, eax
je 0x40b12a
cmp byte [ebp - 3], 0x3a
jne 0x40b12a
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 0x40b146
cmp byte [ebp - 3], 0x3a
jne 0x40b146
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 0x40b162
cmp byte [ebp - 3], 0x3a
jne 0x40b162
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 0x40b237
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x40b195
cmp byte [ebp - 7], 0x3a
jne 0x40b195
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 0x40b1b0
cmp byte [ebp - 7], 0x3a
jne 0x40b1b0
movzx eax, byte [ebp - 8]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 0xc]
cmp eax, 0x37
jne 0x40b1e8
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x40b1d4
cmp byte [ebp - 7], 0x3a
jne 0x40b1d4
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 0x40b20c
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x40b20c
cmp byte [ebp - 7], 0x3a
jne 0x40b20c
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 0x40b228
cmp byte [ebp - 3], 0x3a
jne 0x40b228
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 0x40b252
cmp byte [ebp - 0xb], 0x3a
jne 0x40b252
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 0x40b28a
call esi
test eax, eax
je 0x40b276
cmp byte [ebp - 0xb], 0x3a
jne 0x40b276
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 0x40b2a1
call esi
test eax, eax
je 0x40b2a1
cmp byte [ebp - 0xb], 0x3a
jne 0x40b2a1
movzx eax, byte [ebp - 0xc]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov dword [esi], ecx
cmp dword [eax + 0x3f7a8], ecx
mov dword [ebp - 0xc], ecx
jle 0x40b335
add eax, 0x1fbd8
mov edi, 0x104
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x14]
xor ebx, ebx
cmp dword [eax + 0x1fbd4], ebx
jle 0x40b2fc
add eax, 4
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
mov eax, dword [0x4293d0]
push dword [ebp + 0xc]
call dword [eax + 0x1e0]
pop ecx
test eax, eax
pop ecx
je 0x40b321
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], edi
inc ebx
cmp ebx, dword [eax + 0x1fbd4]
jl 0x40b2d6
inc dword [esi]
mov eax, dword [esi]
imul eax, eax, 0x104
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
lea eax, [eax + ecx - 0x104]
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x1e8]
pop ecx
pop ecx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add dword [ebp + 0xc], edi
cmp ecx, dword [eax + 0x3f7a8]
jl 0x40b2c3
pop edi
pop esi
pop ebx
leave
ret 8