Function at 0x40b9ef
Capabilities:
Get common file path

Disassembly:
push 0xbc
mov eax, 0x4a0304
call fcn.00454d9d
mov edi, ecx
mov dword [ebp - 0x5c], edi
call fcn.0040b7f1
mov dword [ebp - 0x60], eax
mov ebx, 0x4c6540
cmp eax, 1
jne 0x40ba6d
push ebx
lea ecx, [ebp - 0x5c]
call fcn.0040cc78
and dword [ebp - 4], 0
push 0x85
lea ecx, [ebp - 0x5c]
call fcn.00402b46
push ebx
lea ecx, [ebp - 0x54]
call fcn.0040cc78
push 0x9b
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00402b46
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x54]
push 0x10
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [edi - 0x10]
call fcn.00401395
lea ecx, [esi - 0x10]
call fcn.00401395
jmp 0x40bad5
push 2
pop esi
cmp eax, esi
jne 0x40bacf
push ebx
lea ecx, [ebp - 0x68]
call fcn.0040cc78
push 0x85
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], esi
call fcn.00402b46
push ebx
lea ecx, [ebp - 0x54]
call fcn.0040cc78
push 0x9d
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.00402b46
mov esi, dword [ebp - 0x68]
push 0x10
push esi
push dword [ebp - 0x54]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
call fcn.00401395
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00401395
cmp dword [ebp - 0x60], 0
je 0x40bae4
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor al, al
jmp 0x40c0dd
push 0x104
lea ecx, [ebp - 0x80]
call fcn.0040cb9a
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x74]
xor esi, esi
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x80]
call fcn.0040cbd7
push eax
push dword [0x4c6560]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push eax
lea ecx, [ebp - 0x80]
call fcn.0040cd29
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], 7
call fcn.00407fc5
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 5
push dword [ebp - 0x70]
lea ecx, [ebp - 0x88]
call fcn.0040d201
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x74]
lea ecx, [ebp - 0x64]
call fcn.0040d201
push dword [ebp - 0x84]
lea esi, [ebp - 0x34]
push dword [ebp - 0x88]
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push dword [ebp - 0x60]
call fcn.0040d61f
lea edx, [edi + 0x10]
mov ecx, esi
mov byte [ebp - 0x55], 0
call fcn.004214da
test eax, eax
jl 0x40c0af
push 0x138
call fcn.004502b8
pop ecx
mov ecx, eax
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 6
test ecx, ecx
je 0x40bbb0
lea eax, [edi + 0x10]
push eax
mov edx, esi
call fcn.00418bea
jmp 0x40bbb2
xor eax, eax
mov byte [ebp - 4], 5
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x28], eax
test ecx, ecx
je 0x40bbc6
push ecx
call fcn.0040d5cd
push 0x4ae638
lea eax, [edi + 0x10]
push eax
call fcn.0041f44f
push 0x4ae654
push eax
call fcn.0041f44f
push 0x4ae620
push eax
call fcn.0041f44f
lea esi, [ebp - 0x50]
mov ecx, eax
call fcn.0041ee43
push ebx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 7
call fcn.0040cc78
push 0x30d
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 8
call fcn.0040136b
push eax
mov esi, 0x30c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], eax
call fcn.0040859a
cmp dword [ebp - 0x54], 0
je 0x40c002
cmp dword [ebp - 0x54], esi
ja 0x40c002
and dword [ebp - 0x54], 0
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x40bc4f
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x60]
call fcn.0040ca90
lea eax, [ebp - 0x68]
push eax
mov ecx, 0x4c89ec
call fcn.0040141e
push 0
lea eax, [ebp - 0x60]
push eax
mov ecx, 0x4c89d8
call fcn.00437655
mov ecx, dword [ebp - 0x60]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401395
test esi, esi
jne 0x40bd65
cmp dword [ebp - 0x54], 0x14
jg 0x40bca1
inc dword [ebp - 0x54]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40bc43
push edi
lea ecx, [edi + 0x10]
call fcn.0040c82a
test al, al
jne 0x40bcbc
mov eax, dword [edi + 0x28]
push 0x80047e2c
push eax
call fcn.00418e02
push ebx
lea ecx, [ebp - 0x5c]
call fcn.0040cc78
push 0xeb
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xb
call fcn.00402b46
push ebx
lea ecx, [ebp - 0x60]
call fcn.0040cc78
push 0x85
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xc
call fcn.00402b46
mov ebx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x5c]
push 0
push ebx
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x54]
push 1
push 0x80047e28
push dword [edi + 0x28]
call fcn.00418ee2
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [ebx - 0x10]
call fcn.00401395
lea ecx, [esi - 0x10]
call fcn.00401395
mov ecx, dword [ebp - 0x68]
add ecx, 0xfffffff0
call fcn.00401395
push edi
push 1
lea ecx, [ebp - 0x50]
call fcn.00407ab4
push edi
push 1
lea ecx, [ebp - 0x34]
call fcn.00407ab4
lea ecx, [ebp - 0x80]
call fcn.00421c94
push dword [ebp - 0x80]
call fcn.0044fc83
xor al, al
jmp 0x40c0dc
push 0x114
mov byte [ebp - 4], 0xd
call fcn.004502b8
pop ecx
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x40bd97
mov eax, dword [edi + 0x28]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [edi + 0x10]
push ecx
push eax
push dword [ebp - 0x60]
call fcn.00410c3b
mov esi, eax
jmp 0x40bd99
xor esi, esi
mov byte [ebp - 4], 0xd
lea ebx, [edi + 4]
push esi
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x88], esi
call fcn.0040d835
push esi
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.0040311b
lea eax, [ebp - 0x88]
add esp, 0xc
cmp eax, ebx
je 0x40bdd8
mov eax, dword [ebp - 0x88]
mov dword [ebx], eax
mov ecx, dword [ebx + 4]
mov eax, dword [ebp - 0x84]
mov dword [ebx + 4], eax
test ecx, ecx
je 0x40bded
call fcn.004017bb
mov ecx, dword [ebx]
call fcn.00410df9
test eax, eax
jne 0x40bf7d
sub esp, 0x20
mov esi, esp
mov dword [ebp - 0x54], esp
mov eax, 0x40b99e
push edi
push eax
call fcn.0040d4d8
mov eax, dword [ebx]
lea ecx, [ebp - 0x90]
push ecx
push eax
call fcn.00411637
push eax
lea ecx, [edi + 0x2c]
mov byte [ebp - 4], 0xf
call fcn.0046f150
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xd
call fcn.0046f0c0
sub esp, 0x20
mov esi, esp
mov dword [ebp - 0x54], esp
mov eax, 0x40b9cf
push edi
push eax
call fcn.0040d51d
mov eax, dword [ebx]
lea ecx, [ebp - 0x90]
push ecx
push eax
call fcn.004116d9
push eax
lea ecx, [edi + 0x3c]
mov byte [ebp - 4], 0x10
call fcn.0046f150
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xd
call fcn.0046f0c0
push 0x42c
call fcn.004502b8
mov esi, eax
pop ecx
mov dword [ebp - 0x54], esi
mov byte [ebp - 4], 0x11
test esi, esi
je 0x40beb6
push dword [edi + 0x28]
push ecx
push ecx
mov ecx, dword [ebx]
mov eax, esp
mov dword [ebp - 0x84], esp
mov dword [eax], ecx
add ebx, 4
push ebx
lea ecx, [eax + 4]
call fcn.004017e7
call fcn.0040ac9c
jmp 0x40beb8
xor eax, eax
mov byte [ebp - 4], 0xd
mov ecx, dword [edi + 0x20]
mov dword [edi + 0x20], eax
test ecx, ecx
je 0x40becd
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ebx, dword [edi + 0x20]
xor esi, esi
cmp dword [0x4c58d8], esi
jne 0x40bee0
mov dword [0x4c58d8], esi
lea eax, [ebx + 0x20]
push eax
push 0x4c58a8
call fcn.0040441d
movzx eax, ax
push eax
push esi
xor eax, eax
push eax
push eax
push eax
push 0x4c4bcc
call fcn.0040d44e
mov eax, dword [edi + 0x20]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40bf57
mov edi, dword [edi + 0x28]
push 0x80047e27
push edi
call fcn.00418e3e
push 0x4af7e0
lea ecx, [ebp - 0x9c]
call fcn.00404f3a
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0x12
call fcn.0040aaa9
push 0x4ba144
lea eax, [ebp - 0xc8]
push eax
call fcn.004548cc
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
call fcn.00411c72
mov ecx, dword [ebp - 0x68]
add ecx, 0xfffffff0
call fcn.00401395
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.00407ab4
jmp 0x40c0bd
cmp eax, 2
jne 0x40bf90
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov byte [ebp - 0x55], 0
jmp 0x40bf61
cmp eax, 1
jne 0x40bf61
mov byte [ebp - 0x55], al
jmp 0x40bf61
mov eax, dword [edi + 0x28]
push 0x4af7a8
push 0
push 0x80047e29
push eax
call fcn.00418e71
push edi
lea ecx, [edi + 0x10]
call fcn.0040c82a
test al, al
jne 0x40c032
mov eax, dword [edi + 0x28]
push 0x80047e2c
push eax
call fcn.00418e02
push ebx
lea ecx, [ebp - 0x5c]
call fcn.0040cc78
push 0xec
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 9
call fcn.00402b46
push ebx
lea ecx, [ebp - 0x60]
call fcn.0040cc78
push 0x85
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xa
call fcn.00402b46
mov ebx, dword [ebp - 0x60]
push 0
push ebx
push dword [ebp - 0x5c]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, edi
call fcn.0040c6e6
lea ecx, [ebx - 0x10]
call fcn.00401395
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff0
call fcn.00401395
mov ecx, dword [ebp - 0x68]
add ecx, 0xfffffff0
call fcn.00401395
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.00407ab4
push 0
jmp 0x40bd44
mov ecx, edi
call fcn.0040c73b
mov esi, edi
call fcn.0040c6e6
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00407ab4
lea ecx, [ebp - 0x80]
call fcn.00421c94
push dword [ebp - 0x80]
call fcn.0044fc83
mov al, byte [ebp - 0x55]
pop ecx
call fcn.00454df9
ret