Function at 0x46d0be
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 [0x4a6b86]
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 0x46d135
cmp byte [0x4a6ebd], 0
je 0x46d135
push esi
mov byte [0x4a6ebd], 0
call fcn.0040e27f
pop ecx
cmp dword [ebp + 0xc], edi
mov ecx, dword [ebp + 8]
jne 0x46d140
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0x18], edi
jne 0x46d148
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.0045d97c
xor eax, eax
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x1c], edi
setne al
cmp eax, edi
mov dword [ebp - 0x24], eax
je 0x46d191
push 0x20a
lea ecx, [ebp - 0x1c]
call fcn.00433c6b
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 0x46d1db
cmp byte [ebp - 2], al
jne 0x46d1db
push 1
call fcn.004709ba
mov dword [esp], 0x8d4
call fcn.0047b518
cmp eax, edi
pop ecx
mov dword [ebp + 8], eax
je 0x46d1d6
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.0043fd92
jmp 0x46d1d8
xor eax, eax
mov dword [ebp - 0x18], eax
cmp eax, edi
mov dword [ebp - 0x28], eax
mov edi, eax
jne 0x46d1e7
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x46d1f1
mov dword [ecx + 0x2c], edi
xor eax, eax
test ecx, ecx
jne 0x46d218
push 0xa0
call fcn.0047b518
test eax, eax
pop ecx
je 0x46d211
push edi
push esi
mov ecx, eax
call fcn.0041fe8f
jmp 0x46d213
xor eax, eax
mov ecx, eax
mov dword [ebp + 0x1c], ecx
test ecx, ecx
mov dword [ebp - 0x44], eax
je 0x46d221
mov esi, ecx
mov eax, dword [esi + 0x2c]
mov word [esi + 8], bx
mov ebx, 0x4a7658
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 + 0x96]
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.004411c1
xor eax, eax
mov ax, word [esi + 8]
push eax
push dword [ebp + 8]
call fcn.0040e34f
cmp dword [ebp - 0x14], 0
pop ecx
pop ecx
mov dword [esi + 0x54], eax
je 0x46d2a2
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x154], eax
and dword [esi + 0x1c], 0
test byte [ebp + 0x14], 0x10
je 0x46d2b0
or byte [esi + 0xb], 1
test byte [ebp + 0x14], 0x20
je 0x46d2bd
or byte [esi + 0x96], 1
cmp dword [ebp - 0x24], 0
je 0x46d2d2
movzx eax, word [ebp - 0x2c]
push eax
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00414bea
cmp dword [ebp + 0x10], 0
jne 0x46d2df
mov dword [ebp + 0x10], 0x496134
cmp dword [ebp - 0x14], 0
je 0x46d32b
cmp dword [ebp - 0x18], 0
je 0x46d32b
mov eax, dword [edi + 0xf0]
mov dword [edi + 0x14c], esi
mov dword [eax], esi
push edi
mov byte [edi + 0x72], 1
mov byte [edi + 0x71], 0xff
call fcn.0047080c
cmp byte [ebp - 1], 0
pop ecx
jne 0x46d32b
cmp dword [ebp - 0x10], 0
je 0x46d32b
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x10]
inc dword [eax + 0xd0]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0xd]
test al, al
je 0x46d338
mov byte [esi + 0xd], al
mov al, byte [ebp - 3]
xor ecx, ecx
cmp word [ebp - 0x30], cx
mov byte [esi + 0xc], al
jne 0x46d396
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0xc]
push 0xffffffffffffffff
push 0
push str.__MAIN__
call fcn.00410811
test eax, eax
jne 0x46d369
mov eax, 0x493ce0
jmp 0x46d380
push dword [eax]
push 0x496da8
call fcn.0042fb17
test al, al
pop ecx
pop ecx
jne 0x46d38d
mov eax, 0x492484
push eax
push 0x4982f0
mov ecx, esi
call fcn.004335ed
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
test byte [eax + 0xe], 0x80
je 0x46d3a3
and byte [esi + 0xe], 0xfe
mov eax, dword [ebp + 0x10]
cmp word [eax], cx
je 0x46d3c6
mov al, byte [esi + 0xe]
test al, 8
jne 0x46d3c6
cmp byte [esi + 0x94], 0
je 0x46d3c6
test al, 1
mov dword [ebp + 0xc], 1
jne 0x46d3c9
mov dword [ebp + 0xc], ecx
cmp dword [0x4a6e10], ecx
je 0x46d408
cmp dword [ebp + 0xc], ecx
je 0x46d408
push str.ENTER:
lea ecx, [ebp + 0x14]
call fcn.0043ddc9
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.00433c92
push 0
push 0x11
push 0
push dword [ebp + 0x14]
mov ecx, esi
call fcn.00416e7c
lea ecx, [ebp + 0x14]
call fcn.0042eb98
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
mov byte [esi + 0x94], 1
je 0x46d509
cmp dword [ebp - 0x18], ecx
je 0x46d509
cmp byte [ebp - 1], 0
mov ecx, edi
je 0x46d4fe
mov eax, dword [edi]
push 0
push 0x271d
mov byte [edi + 0x71], 0x81
mov byte [edi + 0x70], 0x10
call dword [eax + 8]
push str.0x_X
push str.__WinID
push dword [edi + 0x18]
push esi
call fcn.00435e8d
and dword [edi + 0x154], 0
add esp, 0x10
push dword [ebp + 0x18]
mov ecx, esi
call fcn.0046719d
cmp dword [edi + 0xd0], 0
jg 0x46d487
mov eax, dword [edi + 0xbc]
cmp dword [eax], 0
jg 0x46d487
mov eax, dword [edi + 0xcc]
cmp dword [eax], 0
jle 0x46d4a7
push 0
push 0
push 0x10
push dword [edi + 0x18]
mov byte [edi + 0x71], 0xff
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x20
mov ecx, edi
call fcn.00473898
mov byte [edi + 0x71], 0x81
xor edi, edi
mov eax, dword [ebp + 0x10]
cmp word [eax], di
je 0x46d4e4
cmp dword [ebp + 0xc], edi
je 0x46d4e4
push str.LEAVE:
lea ecx, [ebp + 0x14]
call fcn.0043ddc9
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.00433c92
push edi
push 0x11
push edi
push dword [ebp + 0x14]
mov ecx, esi
call fcn.00416e7c
lea ecx, [ebp + 0x14]
call fcn.0042eb98
cmp dword [ebp + 0x1c], edi
mov eax, dword [esi + 0x90]
mov dword [ebp + 0x10], eax
je 0x46d53a
push dword [ebp - 0x34]
mov ecx, esi
call fcn.0041f8fd
jmp 0x46d563
mov byte [edi + 0x70], 0
call fcn.00473a45
jmp 0x46d4a7
push dword [ebp + 8]
mov ecx, esi
call fcn.0046719d
mov eax, dword [esi + 0x2c]
xor edi, edi
cmp eax, edi
je 0x46d4a9
cmp byte [ebp - 2], 0
jne 0x46d4a9
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 0x46d4a9
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 + 0x96], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x2c], edi
je 0x46d56e
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x2c], eax
lea ecx, [ebp - 0x44]
call fcn.0043dc89
mov ecx, dword [ebp - 0x28]
cmp ecx, edi
je 0x46d584
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
cmp byte [ebp - 1], 0
jne 0x46d5bb
mov esi, dword [ebp - 0x10]
cmp esi, edi
je 0x46d5bb
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [esi + 0xd0]
cmp byte [esi + 0x71], 0x81
je 0x46d5b4
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.00432a6b
cmp dword [ebp - 0x24], edi
je 0x46d653
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp - 0xc]
push 0xffffffffffffffff
push edi
push 0x4921be
mov ecx, esi
call fcn.00410811
cmp eax, edi
je 0x46d5f4
push dword [eax]
push 0x4921c0
call fcn.00432ae2
pop ecx
pop ecx
push 0xffffffffffffffff
push edi
push 0x4921aa
mov ecx, esi
call fcn.00410811
cmp eax, edi
je 0x46d615
push dword [eax]
push 0x4921ac
call fcn.00432ae2
pop ecx
pop ecx
push 0xffffffffffffffff
push edi
push 0x4921d2
mov ecx, esi
call fcn.00410811
cmp eax, edi
je 0x46d636
push dword [eax]
push 0x4921d4
call fcn.00432ae2
pop ecx
pop ecx
cmp word [ebp - 0x2c], di
jne 0x46d64a
push dword [ebp - 0x1c]
call fcn.0040d9ae
pop ecx
call fcn.00410607
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x46d656
mov esi, dword [ebp - 0xc]
cmp dword [esi + 0x2c], edi
je 0x46d661
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x2c], eax
cmp byte [ebp - 1], 0
jne 0x46d66f
push edi
mov ecx, esi
call fcn.004453fa
lea ecx, [ebp - 0x1c]
call fcn.0042eb98
lea ecx, [ebp - 0x20]
call fcn.00418109
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x18