Function at 0x4654e7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
movzx eax, word [ebp + 0x14]
push ebx
push esi
mov esi, ecx
mov cl, al
and cl, 4
mov byte [ebp - 2], cl
mov cl, byte [0x49ab86]
mov byte [ebp - 1], cl
xor ecx, ecx
mov dl, byte [esi + 0xe]
mov ebx, dword [ebp + 0x14]
mov cl, al
and dl, 0x7f
push edi
shr ebx, 0x10
xor edi, edi
mov dword [ebp - 0xc], esi
mov dword [ebp + 0x14], eax
and ecx, 0x10
mov dword [ebp - 0x30], ecx
xor ecx, ecx
mov cl, al
and ecx, 0x40
mov dword [ebp - 0x2c], ecx
mov ecx, eax
shr ecx, 1
shl cl, 7
or cl, dl
mov byte [esi + 0xe], cl
mov cl, al
and cl, 1
test al, al
mov byte [ebp - 3], cl
js 0x46555e
cmp byte [0x49ae80], 0
je 0x46555e
push esi
mov byte [0x49ae80], 0
call fcn.0040d328
pop ecx
cmp dword [ebp + 0xc], edi
mov ecx, dword [ebp + 8]
jne 0x465569
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0x18], edi
jne 0x465571
mov dword [ebp + 0x18], ecx
mov eax, dword [esi + 0x2c]
xor edx, edx
cmp eax, edi
setne dl
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], edx
call fcn.004567f7
xor eax, eax
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x1c], edi
setne al
cmp eax, edi
mov dword [ebp - 0x24], eax
je 0x4655ba
push 0x20a
lea ecx, [ebp - 0x1c]
call fcn.0042e20b
push dword [ebp - 0x1c]
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
je 0x465604
cmp byte [ebp - 2], al
jne 0x465604
push 1
call fcn.00460e22
mov dword [esp], 0x8cc
call fcn.00470568
cmp eax, edi
pop ecx
mov dword [ebp + 8], eax
je 0x4655ff
push edi
push edi
push edi
push edi
push edi
push 0x271c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [ebp + 8]
push eax
call fcn.0043c5f8
jmp 0x465601
xor eax, eax
mov dword [ebp - 0x18], eax
cmp eax, edi
mov dword [ebp - 0x28], eax
mov edi, eax
jne 0x465610
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x46561a
mov dword [ecx + 0x2c], edi
xor eax, eax
test ecx, ecx
jne 0x465641
push 0x9c
call fcn.00470568
test eax, eax
pop ecx
je 0x46563a
push edi
push esi
mov ecx, eax
call fcn.0041df36
jmp 0x46563c
xor eax, eax
mov ecx, eax
mov dword [ebp + 0x1c], ecx
test ecx, ecx
mov dword [ebp - 0x44], eax
je 0x46564a
mov esi, ecx
mov eax, dword [esi + 0x2c]
mov word [esi + 8], bx
mov ebx, 0x49b604
push ebx
mov dword [ebp - 0x40], eax
mov dword [esi + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x3c], eax
mov al, byte [esi + 0xb]
mov byte [ebp - 4], al
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
mov al, byte [esi + 0x92]
push ebx
mov byte [ebp - 5], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x20]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
push 1
push dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp + 8], eax
mov dword [esi + 0x4c], eax
call fcn.0043d9b9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp - 0x14], 0
mov dword [esi + 0x54], eax
je 0x4656c3
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x14c], eax
and dword [esi + 0x1c], 0
test byte [ebp + 0x14], 0x10
je 0x4656d1
or byte [esi + 0xb], 1
test byte [ebp + 0x14], 0x20
je 0x4656de
or byte [esi + 0x92], 1
cmp dword [ebp - 0x24], 0
je 0x4656f3
movzx eax, word [ebp - 0x2c]
push eax
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00414618
cmp dword [ebp + 0x10], 0
jne 0x465700
mov dword [ebp + 0x10], 0x484964
cmp dword [ebp - 0x14], 0
je 0x46574c
cmp dword [ebp - 0x18], 0
je 0x46574c
mov eax, dword [edi + 0xe8]
mov dword [edi + 0x144], esi
mov dword [eax], esi
push edi
mov byte [edi + 0x6a], 1
mov byte [edi + 0x69], 0xff
call fcn.0047128a
cmp byte [ebp - 1], 0
pop ecx
jne 0x46574c
cmp dword [ebp - 0x10], 0
je 0x46574c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x10]
inc dword [eax + 0xc8]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0xd]
test al, al
je 0x465759
mov byte [esi + 0xd], al
mov al, byte [ebp - 3]
xor ecx, ecx
cmp word [ebp - 0x30], cx
mov byte [esi + 0xc], al
jne 0x4657b7
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0xc]
push 0xffffffffffffffff
push 0
push str.__MAIN__
call fcn.004100d3
test eax, eax
jne 0x46578a
mov eax, 0x488814
jmp 0x4657a1
push dword [eax]
push 0x48b9a8
call fcn.0042999a
test al, al
pop ecx
pop ecx
jne 0x4657ae
mov eax, 0x486260
push eax
push 0x48d088
mov ecx, esi
call fcn.0042cbf7
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
test byte [eax + 0xe], 0x80
je 0x4657c4
and byte [esi + 0xe], 0xfe
mov eax, dword [ebp + 0x10]
cmp word [eax], cx
je 0x4657e7
mov al, byte [esi + 0xe]
test al, 8
jne 0x4657e7
cmp byte [esi + 0x90], 0
je 0x4657e7
test al, 1
mov dword [ebp + 0xc], 1
jne 0x4657ea
mov dword [ebp + 0xc], ecx
cmp dword [0x49adec], ecx
je 0x465829
cmp dword [ebp + 0xc], ecx
je 0x465829
push str.ENTER:
lea ecx, [ebp + 0x14]
call fcn.0043a4ba
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.0042e232
push 0
push 0x11
push 0
push dword [ebp + 0x14]
mov ecx, esi
call fcn.00416837
lea ecx, [ebp + 0x14]
call fcn.00428a48
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
mov byte [esi + 0x90], 1
je 0x46592d
cmp dword [ebp - 0x18], ecx
je 0x46592d
cmp byte [ebp - 1], 0
mov ecx, edi
je 0x465922
mov eax, dword [edi]
push 0
push 0x271d
mov byte [edi + 0x69], 0x81
mov byte [edi + 0x68], 0x10
call dword [eax + 8]
mov eax, dword [edi + 0x18]
push str.0x_I64X
cdq
push str.__WinID
push edx
push eax
push esi
call fcn.0043007d
and dword [edi + 0x14c], 0
add esp, 0x14
push dword [ebp + 0x18]
mov ecx, esi
call fcn.0045ff6c
cmp dword [edi + 0xc8], 0
jg 0x4658ab
mov eax, dword [edi + 0xb4]
cmp dword [eax], 0
jg 0x4658ab
mov eax, dword [edi + 0xc4]
cmp dword [eax], 0
jle 0x4658cb
push 0
push 0
push 0x10
push dword [edi + 0x18]
mov byte [edi + 0x69], 0xff
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x20
mov ecx, edi
call fcn.00439865
mov byte [edi + 0x69], 0x81
xor edi, edi
mov eax, dword [ebp + 0x10]
cmp word [eax], di
je 0x465908
cmp dword [ebp + 0xc], edi
je 0x465908
push 0x48d078
lea ecx, [ebp + 0x14]
call fcn.0043a4ba
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.0042e232
push edi
push 0x11
push edi
push dword [ebp + 0x14]
mov ecx, esi
call fcn.00416837
lea ecx, [ebp + 0x14]
call fcn.00428a48
cmp dword [ebp + 0x1c], edi
mov eax, dword [esi + 0x8c]
mov dword [ebp + 0x10], eax
je 0x46595e
push dword [ebp - 0x34]
mov ecx, esi
call fcn.0041da45
jmp 0x465987
mov byte [edi + 0x68], 0
call fcn.0043999c
jmp 0x4658cb
push dword [ebp + 8]
mov ecx, esi
call fcn.0045ff6c
mov eax, dword [esi + 0x2c]
xor edi, edi
cmp eax, edi
je 0x4658cd
cmp byte [ebp - 2], 0
jne 0x4658cd
push edi
push edi
push 0x10
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x28], eax
jmp 0x4658cd
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x4c], eax
mov al, byte [ebp - 4]
mov byte [esi + 0xb], al
mov al, byte [ebp - 5]
push ebx
mov byte [esi + 0x92], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x2c], edi
je 0x465992
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x2c], eax
lea ecx, [ebp - 0x44]
call fcn.0043a37d
mov ecx, dword [ebp - 0x28]
cmp ecx, edi
je 0x4659a8
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
cmp byte [ebp - 1], 0
jne 0x4659df
mov esi, dword [ebp - 0x10]
cmp esi, edi
je 0x4659df
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [esi + 0xc8]
cmp byte [esi + 0x69], 0x81
je 0x4659d8
push edi
push edi
push 0x43d
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0042c1f3
cmp dword [ebp - 0x24], edi
je 0x465a77
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp - 0xc]
push 0xffffffffffffffff
push edi
push 0x4861b6
mov ecx, esi
call fcn.004100d3
cmp eax, edi
je 0x465a18
push dword [eax]
push 0x4861b8
call fcn.0042c26a
pop ecx
pop ecx
push 0xffffffffffffffff
push edi
push 0x486196
mov ecx, esi
call fcn.004100d3
cmp eax, edi
je 0x465a39
push dword [eax]
push 0x486198
call fcn.0042c26a
pop ecx
pop ecx
push 0xffffffffffffffff
push edi
push 0x486182
mov ecx, esi
call fcn.004100d3
cmp eax, edi
je 0x465a5a
push dword [eax]
push 0x486184
call fcn.0042c26a
pop ecx
pop ecx
cmp word [ebp - 0x2c], di
jne 0x465a6e
push dword [ebp - 0x1c]
call fcn.0040ca4b
pop ecx
call fcn.0040fecf
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x465a7a
mov esi, dword [ebp - 0xc]
cmp dword [esi + 0x2c], edi
je 0x465a85
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x2c], eax
cmp byte [ebp - 1], 0
jne 0x465a93
push edi
mov ecx, esi
call fcn.004403ab
lea ecx, [ebp - 0x1c]
call fcn.00428a48
lea ecx, [ebp - 0x20]
call fcn.004180aa
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x18