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

Disassembly:
mov eax, 0x421a8a
call fcn.00420f90
sub esp, 0x520
lea eax, [ebp - 0x18]
push ebx
push esi
push edi
test eax, eax
mov ebx, ecx
jne 0x40bdca
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x1c]
push eax
push 3
call edi
test eax, eax
je 0x40bbba
cmp byte [ebp - 0x1b], 0x3a
jne 0x40bbba
movzx eax, byte [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push 3
call edi
test eax, eax
je 0x40bbd7
cmp byte [ebp - 0xf], 0x3a
jne 0x40bbd7
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push 3
call edi
test eax, eax
je 0x40bbf4
cmp byte [ebp - 0xf], 0x3a
jne 0x40bbf4
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40bc13
cmp byte [ebp - 0xf], 0x3a
jne 0x40bc13
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x18]
cmp eax, 0x37
jne 0x40bc8d
lea eax, [ebp - 0x10]
push eax
push 3
call edi
test eax, eax
je 0x40bc38
cmp byte [ebp - 0xf], 0x3a
jne 0x40bc38
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push 3
call edi
test eax, eax
je 0x40bc55
cmp byte [ebp - 0xf], 0x3a
jne 0x40bc55
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push 3
call edi
test eax, eax
je 0x40bc72
cmp byte [ebp - 0xf], 0x3a
jne 0x40bc72
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
and byte [ebp - 0x12], 0
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 0x14], 0x42
mov byte [ebp - 0x13], 0x3a
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x40bd55
lea eax, [ebp - 0x14]
push eax
push 3
call edi
test eax, eax
je 0x40bcaa
cmp byte [ebp - 0x13], 0x3a
jne 0x40bcaa
movzx eax, byte [ebp - 0x14]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40bcc9
cmp byte [ebp - 0x13], 0x3a
jne 0x40bcc9
movzx eax, byte [ebp - 0x14]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x18]
cmp eax, 0x37
jne 0x40bd06
lea eax, [ebp - 0x14]
push eax
push 3
call edi
test eax, eax
je 0x40bcee
cmp byte [ebp - 0x13], 0x3a
jne 0x40bcee
movzx eax, byte [ebp - 0x14]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
and byte [ebp - 0x16], 0
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 0x18], 0x42
mov byte [ebp - 0x17], 0x3a
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x40bd2a
push esi
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 0x14]
push eax
push 3
call edi
test eax, eax
je 0x40bd2a
cmp byte [ebp - 0x13], 0x3a
jne 0x40bd2a
movzx eax, byte [ebp - 0x14]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push 3
call edi
test eax, eax
je 0x40bd47
cmp byte [ebp - 0xf], 0x3a
jne 0x40bd47
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push esi
push 1
push 0xc8d
call dword [sym.imp.KERNEL32.dll_OpenEventA]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40bd74
cmp byte [ebp - 0x1b], 0x3a
jne 0x40bd74
movzx eax, byte [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x18]
cmp eax, 0x37
lea eax, [ebp - 0x1c]
push eax
push 3
jne 0x40bdb1
call edi
test eax, eax
je 0x40bd99
cmp byte [ebp - 0x1b], 0x3a
jne 0x40bd99
movzx eax, byte [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
and byte [ebp - 0x16], 0
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 0x18], 0x42
mov byte [ebp - 0x17], 0x3a
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x40bdcc
call edi
test eax, eax
je 0x40bdcc
cmp byte [ebp - 0x1b], 0x3a
jne 0x40bdcc
movzx eax, byte [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
jmp 0x40bdcc
xor esi, esi
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
push 0x5e
lea eax, [eax + ecx - 0x5e]
push eax
lea eax, [ebp - 0x98]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
add esp, 0xc
lea eax, [eax + ecx - 0x62]
lea ecx, [ebp - 0x324]
push 4
push eax
call fcn.0040e4c4
lea eax, [ebp - 0x98]
push 0x5e
push eax
lea ecx, [ebp - 0x324]
mov dword [ebp - 4], esi
call fcn.0040e566
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x324]
call fcn.0040e55f
push ebx
push 0x40c3a4
call fcn.0040e742
pop ecx
cmp dword [ebp - 0x98], 3
pop ecx
lea eax, [ebp - 0x80]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push eax
push dword [ebp - 0x84]
jne 0x40be6b
sub esp, 0x10
lea esi, [ebp - 0x94]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
push 0
movsd dword es:[edi], dword [esi]
call fcn.0040e6ad
add esp, 0x28
xor esi, esi
jmp 0x40be75
push esi
push esi
call fcn.0040e647
add esp, 0x18
push esi
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 edi
push edi
push 0x36
push 0x31
push 0x43
push 0x39
push edi
push eax
push 0x65
push 0x31
push 0x34
push edi
push eax
push 0x34
push 0x30
push 0x46
push edi
push 0x44
push 0x46
push 0x30
push 0x34
push eax
push 0x37
push eax
push 0x41
lea eax, [ebp - 0xfc]
push 0x7b
push eax
call fcn.004047d8
add esp, 0xa0
lea eax, [ebp - 0xfc]
push eax
mov eax, dword [0x4293d0]
push esi
push 1
push esi
call dword [eax + 0x68]
push esi
mov dword [ebx + 0xc], eax
mov eax, dword [0x4293d0]
push esi
push 1
push esi
call dword [eax + 0x68]
push esi
push 0x7d
push 0x34
mov dword [ebx + 0x10], eax
pop ecx
push ecx
push 0x33
pop eax
push eax
push 0x36
push 0x31
push 0x43
push 0x38
push 0x35
push 0x44
push 0x39
push 0x36
push 0x42
push 0x37
push edi
push 0x46
push 0x46
push 0x42
push 0x41
push edi
push 0x66
push 0x36
push ecx
push ecx
push edi
push 0x32
push 0x38
push ecx
push 0x39
push edi
push 0x41
push eax
push 0x46
push eax
push eax
push 0x44
push eax
push 0x38
lea eax, [ebp - 0xfc]
push 0x7b
push eax
call fcn.004047d8
add esp, 0xa0
lea eax, [ebp - 0xfc]
push eax
mov eax, dword [0x4293d0]
push esi
push 1
push esi
call dword [eax + 0x68]
mov ecx, dword [ebx + 0xc]
mov dword [ebx + 0x14], eax
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push esi
push eax
mov eax, dword [0x4293d0]
push 3
call dword [eax + 0x80]
sub eax, esi
je 0x40c0f4
dec eax
je 0x40c0df
dec eax
jne 0x40c0f9
push dword [ebx + 0x14]
mov eax, dword [0x4293d0]
call dword [eax + 0x7c]
push 0x5e
push esi
push dword [ebx + 8]
lea ecx, [ebp - 0x154]
push dword [ebx + 4]
call fcn.0040e330
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x154]
push eax
mov dword [ebp - 4], 1
call fcn.0040e413
lea eax, [ebp - 0x428]
push eax
mov eax, dword [0x4293d0]
push 0x104
call dword [eax + 0x54]
push esi
push 0x73
push 0x25
push 0x73
lea eax, [ebp - 0x1b8]
push 0x25
push eax
call fcn.004047d8
add esp, 0x18
push esi
push 0x74
push 0x61
push 0x64
push 0x2e
push 0x7d
push 0x43
pop eax
push eax
push 0x32
pop ecx
push ecx
push 0x37
push ecx
push eax
push ecx
push 0x45
push eax
push 0x31
push 0x44
push 0x35
push 0x31
push edi
push 0x30
push 0x31
push eax
push 0x41
push edi
push 0x65
push 0x64
push 0x63
push 0x34
push edi
push 0x38
push 0x34
push 0x45
push 0x45
push edi
push 0x41
push 0x39
push 0x46
push eax
push 0x34
push ecx
push 0x46
push 0x46
lea eax, [ebp - 0x21c]
push 0x7b
push eax
call fcn.004047d8
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x52c]
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x1dc]
add esp, 0xc0
lea eax, [ebp - 0x52c]
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x50]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x40c0cb
lea ecx, [ebp - 0x1c]
push esi
push ecx
lea ecx, [ebp - 0x38]
push 0x10
push ecx
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x78]
push dword [ebp - 0x18]
mov eax, dword [0x4293d0]
call dword [eax + 0x44]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x154]
call fcn.0040e3e1
jmp 0x40bf73
push dword [ebx + 0x10]
mov eax, dword [0x4293d0]
call dword [eax + 0x7c]
call fcn.0040e723
jmp 0x40bf73
call fcn.0040e723
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret