Function at 0x471542
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 [0x4acb8a]
mov byte [ebp - 1], cl
xor ecx, ecx
mov dl, byte [esi + 0xc]
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 - 0x34], ecx
xor ecx, ecx
mov cl, al
and ecx, 0x40
mov dword [ebp - 0x30], ecx
mov ecx, eax
shr ecx, 1
shl cl, 7
or cl, dl
mov byte [esi + 0xc], cl
mov cl, al
and cl, 1
test al, al
mov byte [ebp - 3], cl
js 0x4715d4
cmp byte [0x4acec1], 0
je 0x4715d4
or byte [0x4acec1], 0x80
xor ecx, ecx
mov cl, byte [0x4acec1]
and eax, 0x100
and ecx, 2
or ecx, eax
je 0x4715d4
push esi
mov byte [0x4acec1], 0
call fcn.0040e9a4
pop ecx
cmp dword [ebp + 0xc], edi
mov ecx, dword [ebp + 8]
jne 0x4715df
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0x18], edi
jne 0x4715e7
mov dword [ebp + 0x18], ecx
mov eax, dword [esi + 0x28]
xor edx, edx
cmp eax, edi
setne dl
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], edx
call fcn.004618fb
xor eax, eax
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x20], edi
setne al
cmp eax, edi
mov dword [ebp - 0x28], eax
je 0x471630
push 0x20a
lea ecx, [ebp - 0x20]
call fcn.00435da9
push dword [ebp - 0x20]
push 0x208
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
xor eax, eax
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
je 0x47167a
cmp byte [ebp - 2], al
jne 0x47167a
push 1
call fcn.00474ecf
mov dword [esp], 0x8d8
call fcn.00480078
cmp eax, edi
pop ecx
mov dword [ebp + 8], eax
je 0x471675
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.00442373
jmp 0x471677
xor eax, eax
mov dword [ebp - 0x18], eax
cmp eax, edi
mov dword [ebp - 0x2c], eax
mov edi, eax
jne 0x471686
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x471690
mov dword [ecx + 0x28], edi
xor eax, eax
test ecx, ecx
jne 0x4716b7
push 0x9c
call fcn.00480078
test eax, eax
pop ecx
je 0x4716b0
push edi
push esi
mov ecx, eax
call fcn.00428357
jmp 0x4716b2
xor eax, eax
mov ecx, eax
mov dword [ebp + 0x1c], ecx
test ecx, ecx
mov dword [ebp - 0x44], eax
je 0x4716c0
mov esi, ecx
mov eax, dword [esi + 0x28]
mov word [esi + 0x2c], bx
mov ebx, 0x4ad684
push ebx
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x28], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x40], eax
mov al, byte [esi + 9]
mov byte [ebp - 4], al
mov eax, dword [esi + 4]
mov dword [ebp - 0x38], eax
mov al, byte [esi + 0x92]
push ebx
mov byte [ebp - 5], al
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
lea eax, [ebp - 0x24]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
push 1
push dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp + 8], eax
mov dword [esi + 0x48], eax
call fcn.00443839
xor eax, eax
mov ax, word [esi + 0x2c]
push eax
push dword [ebp + 8]
call fcn.0040ea74
cmp dword [ebp - 0x14], 0
pop ecx
pop ecx
mov dword [esi + 0x50], eax
je 0x471741
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x158], eax
and dword [esi + 0x18], 0
test byte [ebp + 0x14], 0x10
je 0x47174f
or byte [esi + 9], 1
test byte [ebp + 0x14], 0x20
je 0x47175c
or byte [esi + 0x92], 1
cmp dword [ebp - 0x28], 0
je 0x471771
movzx eax, word [ebp - 0x30]
push eax
push dword [ebp + 0x10]
mov ecx, esi
call fcn.0041636e
cmp dword [ebp + 0x10], 0
jne 0x47177e
mov dword [ebp + 0x10], 0x4949a4
cmp dword [ebp - 0x14], 0
je 0x4717ca
cmp dword [ebp - 0x18], 0
je 0x4717ca
mov eax, dword [edi + 0xf4]
mov dword [edi + 0x150], esi
mov dword [eax], esi
push edi
mov byte [edi + 0x76], 1
mov byte [edi + 0x75], 0xff
call fcn.0042c298
cmp byte [ebp - 1], 0
pop ecx
jne 0x4717ca
cmp dword [ebp - 0x10], 0
je 0x4717ca
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [ebp - 0x10]
inc dword [eax + 0xd4]
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0xb]
test al, al
je 0x4717d7
mov byte [esi + 0xb], al
mov al, byte [ebp - 3]
xor ecx, ecx
cmp word [ebp - 0x34], cx
mov byte [esi + 0xa], al
jne 0x471835
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ecx, dword [ebp - 0xc]
push 0xffffffffffffffff
push 0
push str.__MAIN__
call fcn.0041083d
test eax, eax
jne 0x471808
mov eax, 0x498f40
jmp 0x47181f
push dword [eax]
push 0x49c430
call fcn.004318e1
test al, al
pop ecx
pop ecx
jne 0x47182c
mov eax, 0x497a68
push eax
push 0x49de28
mov ecx, esi
call fcn.00435749
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
test byte [eax + 0xc], 0x80
je 0x471842
and byte [esi + 0xc], 0xfe
mov eax, dword [ebp + 0x10]
cmp word [eax], cx
je 0x471865
mov al, byte [esi + 0xc]
test al, 8
jne 0x471865
cmp byte [esi + 0x90], 0
je 0x471865
test al, 1
mov dword [ebp + 0xc], 1
jne 0x471868
mov dword [ebp + 0xc], ecx
cmp dword [0x4ace14], ecx
je 0x4718a7
cmp dword [ebp + 0xc], ecx
je 0x4718a7
push str.ENTER:
lea ecx, [ebp + 0x14]
call fcn.004403c3
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.00435dd0
push 0
push 0x11
push 0
push dword [ebp + 0x14]
mov ecx, esi
call fcn.00418c27
lea ecx, [ebp + 0x14]
call fcn.0043092f
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
mov byte [esi + 0x90], 1
je 0x4719af
cmp dword [ebp - 0x18], ecx
je 0x4719af
cmp byte [ebp - 1], 0
mov ecx, edi
je 0x4719a4
mov eax, dword [edi]
push 0
push 0x271d
mov byte [edi + 0x75], 0x81
mov byte [edi + 0x74], 0x10
call dword [eax + 8]
push str.0x_X
push str.__WinID
push dword [edi + 0x18]
push esi
call fcn.0043807b
and dword [edi + 0x158], 0
add esp, 0x10
push dword [ebp + 0x18]
mov ecx, esi
call fcn.0046b49b
cmp dword [edi + 0xd4], 0
jg 0x471926
mov eax, dword [edi + 0xc4]
cmp dword [eax], 0
jg 0x471926
mov eax, dword [edi + 0xd0]
cmp dword [eax], 0
jle 0x471946
push 0
push 0
push 0x10
push dword [edi + 0x18]
mov byte [edi + 0x75], 0xff
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x20
mov ecx, edi
call fcn.00478358
mov byte [edi + 0x75], 0x81
xor edi, edi
mov eax, dword [ebp + 0x10]
cmp word [eax], di
je 0x471983
cmp dword [ebp + 0xc], edi
je 0x471983
push str.LEAVE:
lea ecx, [ebp + 0x14]
call fcn.004403c3
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.00435dd0
push edi
push 0x11
push edi
push dword [ebp + 0x14]
mov ecx, esi
call fcn.00418c27
lea ecx, [ebp + 0x14]
call fcn.0043092f
cmp dword [ebp + 0x1c], edi
mov eax, dword [esi + 0x8c]
mov dword [ebp + 0x10], eax
je 0x471a1c
push dword [ebp - 0x38]
mov ecx, esi
call fcn.004282f1
jmp 0x471a45
mov byte [edi + 0x74], 0
call fcn.00478586
jmp 0x471946
push dword [ebp + 0x18]
mov ecx, esi
call fcn.0046b49b
mov eax, dword [esi + 0x28]
xor edi, edi
cmp eax, edi
je 0x471a00
cmp byte [ebp - 2], 0
jne 0x471a00
test byte [esi + 0x91], 1
je 0x471a00
mov ecx, dword [esi + 0x24]
cmp eax, dword [ecx + 0x28]
je 0x471a00
cmp dword [ebp - 0x1c], eax
je 0x471a00
mov ecx, dword [ebp - 0xc]
cmp esi, ecx
je 0x471a00
cmp eax, dword [ecx + 0x28]
je 0x471a00
push edi
push edi
push 0x10
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x2c], eax
mov dword [esi + 0x28], edi
cmp dword [ebp - 0x1c], edi
jne 0x471948
mov eax, dword [esi + 0x28]
cmp eax, edi
je 0x471948
mov dword [ebp - 0x1c], eax
jmp 0x471948
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x48], eax
mov al, byte [ebp - 4]
mov byte [esi + 9], al
mov al, byte [ebp - 5]
push ebx
mov byte [esi + 0x92], al
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp dword [esi + 0x28], edi
je 0x471a50
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x28], eax
lea ecx, [ebp - 0x44]
call fcn.0044024a
mov ecx, dword [ebp - 0x2c]
cmp ecx, edi
je 0x471a66
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
cmp byte [ebp - 1], 0
mov esi, dword [ebp - 0x10]
jne 0x471a9d
cmp esi, edi
je 0x471a9d
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
dec dword [esi + 0xd4]
cmp byte [esi + 0x75], 0x81
je 0x471a96
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.00434b28
cmp dword [ebp - 0x28], edi
je 0x471b33
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ecx, dword [ebp - 0xc]
push 0xffffffffffffffff
push edi
push 0x4976a2
call fcn.0041083d
cmp eax, edi
je 0x471ad4
push dword [eax]
push 0x4976a4
call fcn.00434b9f
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
push 0xffffffffffffffff
push edi
push 0x49768e
call fcn.0041083d
cmp eax, edi
je 0x471af6
push dword [eax]
push 0x497690
call fcn.00434b9f
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
push 0xffffffffffffffff
push edi
push 0x4976b6
call fcn.0041083d
cmp eax, edi
je 0x471b18
push dword [eax]
push 0x4976b8
call fcn.00434b9f
pop ecx
pop ecx
cmp word [ebp - 0x30], di
jne 0x471b2c
push dword [ebp - 0x20]
call fcn.0040e0a2
pop ecx
call fcn.004105cd
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x28], edi
je 0x471b3e
mov dword [ecx + 0x28], esi
cmp byte [ebp - 1], 0
jne 0x471b4a
push edi
call fcn.00447ee8
lea ecx, [ebp - 0x20]
call fcn.0043092f
lea ecx, [ebp - 0x24]
call fcn.0041a422
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x18