Function at 0x47c391
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
movzx edx, word [ebp + 0x14]
mov eax, dword [ebp + 0x14]
shr eax, 0x10
mov dword [ebp - 0x18], eax
push ebx
mov dword [ebp - 8], ecx
mov eax, edx
and eax, 4
mov dword [ebp - 0x3c], eax
xor ebx, ebx
mov eax, 0x200
push esi
mov esi, dword [ebp - 8]
mov ecx, edx
and ecx, eax
cmp dword [ebp + 0x1c], esi
push edi
setne bl
mov dword [ebp + 0x14], edx
dec ebx
and ebx, 0xfffffe01
add ebx, eax
neg ecx
sbb ecx, ecx
xor eax, eax
mov al, dl
and ecx, ebx
mov bl, byte [0x4bdbe6]
mov dword [ebp - 0x38], ecx
mov cl, byte [esi + 0xc]
and cl, 0x7f
xor edi, edi
and eax, 0x10
mov dword [ebp - 0x54], eax
xor eax, eax
mov al, dl
mov byte [ebp - 1], bl
and eax, 0x40
mov dword [ebp - 0x4c], eax
mov eax, edx
shr eax, 1
shl al, 7
or al, cl
mov byte [esi + 0xc], al
mov al, dl
and al, 1
mov byte [ebp - 2], al
mov eax, dword [ebp + 0x1c]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x47c425
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x40], eax
jmp 0x47c428
mov dword [ebp - 0x40], edi
test dl, dl
js 0x47c460
cmp byte [0x4bdf32], 0
je 0x47c460
or byte [0x4bdf32], 0x80
xor eax, eax
mov al, byte [0x4bdf32]
and edx, 0x100
and eax, 2
or eax, edx
je 0x47c460
push edi
push esi
mov byte [0x4bdf32], 0
call fcn.004109b8
pop ecx
pop ecx
cmp dword [ebp + 0xc], edi
mov ecx, dword [ebp + 8]
jne 0x47c46b
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0x18], edi
jne 0x47c473
mov dword [ebp + 0x18], ecx
mov eax, dword [esi + 0x28]
xor edx, edx
cmp eax, edi
setne dl
neg bl
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x10], edx
sbb ebx, ebx
not ebx
and ebx, eax
mov dword [ebp - 0x34], ebx
call fcn.0046877f
xor eax, eax
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x2c], edi
setne al
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x47c4c7
push 0x20a
lea ecx, [ebp - 0x2c]
call fcn.0043d3ea
push dword [ebp - 0x2c]
push 0x208
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
or ebx, 0xffffffff
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
je 0x47c545
push 0x4beb4c
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push ebx
push edi
push 0x4a7216
mov ecx, esi
call fcn.00412ddf
cmp eax, edi
je 0x47c500
push ebx
push dword [eax]
lea ecx, [ebp - 0x28]
call fcn.0043d4c9
push ebx
push edi
push 0x4a7202
mov ecx, esi
call fcn.00412ddf
cmp eax, edi
je 0x47c51d
push ebx
push dword [eax]
lea ecx, [ebp - 0x24]
call fcn.0043d4c9
push ebx
push edi
push 0x4a722a
mov ecx, esi
call fcn.00412ddf
cmp eax, edi
je 0x47c53a
push ebx
push dword [eax]
lea ecx, [ebp - 0x20]
call fcn.0043d4c9
push 0x4beb4c
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
xor eax, eax
cmp dword [ebp - 0x10], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x14], eax
je 0x47c590
cmp dword [ebp - 0x3c], edi
jne 0x47c590
push 1
call fcn.00483e85
mov dword [esp], 0x8d8
call fcn.0048f958
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x47c58b
push edi
push edi
push edi
push edi
push edi
push 0x271c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov ecx, ebx
call fcn.00447be3
jmp 0x47c58d
xor eax, eax
mov dword [ebp - 0x14], eax
cmp eax, edi
mov dword [ebp - 0x44], eax
mov edi, eax
jne 0x47c59c
mov edi, dword [ebp - 0x50]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x47c5a6
mov dword [ecx + 0x28], edi
xor eax, eax
test ecx, ecx
jne 0x47c5cd
push 0x9c
call fcn.0048f958
test eax, eax
pop ecx
je 0x47c5c6
push edi
push esi
mov ecx, eax
call fcn.0042ea51
jmp 0x47c5c8
xor eax, eax
mov dword [ebp + 0x1c], eax
mov ecx, eax
test ecx, ecx
mov dword [ebp - 0x64], eax
je 0x47c5d6
mov esi, ecx
mov ax, word [ebp - 0x18]
mov word [esi + 0x2c], ax
mov eax, dword [esi + 0x28]
mov ebx, 0x4beb4c
push ebx
mov dword [ebp - 0x18], eax
mov dword [esi + 0x28], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x60], eax
mov al, byte [esi + 9]
mov byte [ebp + 0xb], al
mov eax, dword [esi + 4]
mov dword [ebp - 0x58], eax
mov al, byte [esi + 0x92]
push ebx
mov byte [ebp - 3], al
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
lea eax, [ebp - 0x30]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax]
push 1
push dword [ebp + 0xc]
mov ecx, esi
mov dword [esi + 0x48], ebx
call fcn.0044814b
xor eax, eax
mov ax, word [esi + 0x2c]
push eax
push ebx
call fcn.00410abb
cmp dword [ebp - 0x10], 0
pop ecx
pop ecx
mov dword [esi + 0x50], eax
je 0x47c656
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x158], eax
xor ebx, ebx
test byte [ebp + 0x14], 0x10
mov dword [esi + 0x18], ebx
je 0x47c665
or byte [esi + 9], 1
test byte [ebp + 0x14], 0x20
je 0x47c672
or byte [esi + 0x92], 1
cmp dword [ebp - 0x1c], ebx
je 0x47c686
movzx eax, word [ebp - 0x4c]
push eax
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00418810
cmp dword [ebp + 0x10], ebx
jne 0x47c692
mov dword [ebp + 0x10], 0x4a39d4
cmp dword [ebp - 0x10], ebx
je 0x47c6df
cmp dword [ebp - 0x14], ebx
je 0x47c6df
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.0048fdcb
cmp dword [ebp - 0x34], ebx
pop ecx
mov ebx, 0x4beb4c
je 0x47c6e4
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [ebp - 0x34]
inc dword [eax + 0xd4]
push ebx
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
jmp 0x47c6e4
mov ebx, 0x4beb4c
mov eax, dword [ebp - 8]
mov al, byte [eax + 0xb]
test al, al
je 0x47c6f1
mov byte [esi + 0xb], al
mov al, byte [ebp - 2]
xor ecx, ecx
cmp word [ebp - 0x54], cx
mov byte [esi + 0xa], al
jne 0x47c74f
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ecx, dword [ebp - 8]
push 0xffffffffffffffff
push 0
push str.__MAIN__
call fcn.00412ddf
test eax, eax
jne 0x47c722
mov eax, 0x4a8464
jmp 0x47c739
push dword [eax]
push 0x4acc90
call fcn.00438ae0
test al, al
pop ecx
pop ecx
jne 0x47c746
mov eax, 0x4a7658
push eax
push 0x4aea2c
mov ecx, esi
call fcn.0043cc80
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
xor ecx, ecx
mov eax, dword [ebp - 8]
test byte [eax + 0xc], 0x80
je 0x47c75c
and byte [esi + 0xc], 0xfe
mov eax, dword [ebp + 0x10]
cmp word [eax], cx
je 0x47c77f
mov al, byte [esi + 0xc]
test al, 8
jne 0x47c77f
cmp byte [esi + 0x90], 0
je 0x47c77f
test al, 1
mov dword [ebp + 0xc], 1
jne 0x47c782
mov dword [ebp + 0xc], ecx
cmp dword [0x4bde94], ecx
je 0x47c7c1
cmp dword [ebp + 0xc], ecx
je 0x47c7c1
push 0x4a74ec
lea ecx, [ebp + 0x14]
call fcn.00445746
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.0043d411
push 0
push 0x11
push 0
push dword [ebp + 0x14]
mov ecx, esi
call fcn.0041ab5d
lea ecx, [ebp + 0x14]
call fcn.00437884
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
mov byte [esi + 0x90], 1
je 0x47c868
cmp dword [ebp - 0x14], ecx
je 0x47c868
cmp byte [ebp - 1], 0
mov ecx, edi
je 0x47c85d
mov eax, dword [edi]
push 0
push 0x271d
mov byte [edi + 0x75], 0x81
mov byte [edi + 0x74], 0x10
call dword [eax + 8]
push str.__WinID
push dword [edi + 0x18]
push esi
call fcn.00445818
and dword [edi + 0x158], 0
add esp, 0xc
push dword [ebp + 0x18]
mov ecx, esi
call fcn.0047553c
cmp dword [edi + 0xd4], 0
jg 0x47c83b
mov eax, dword [edi + 0xc4]
cmp dword [eax], 0
jg 0x47c83b
mov eax, dword [edi + 0xd0]
cmp dword [eax], 0
jle 0x47c8c7
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.00487321
mov byte [edi + 0x75], 0x81
jmp 0x47c8c7
mov byte [edi + 0x74], 0
call fcn.00487577
jmp 0x47c8c7
push dword [ebp + 0x18]
mov ecx, esi
call fcn.0047553c
mov eax, dword [esi + 0x28]
xor edi, edi
cmp eax, edi
je 0x47c8b8
cmp dword [ebp - 0x3c], edi
jne 0x47c8b8
test byte [esi + 0x91], 1
je 0x47c8b8
mov ecx, dword [esi + 0x24]
cmp eax, dword [ecx + 0x28]
je 0x47c8b8
cmp dword [ebp - 0x18], eax
je 0x47c8b8
mov ecx, dword [ebp - 8]
cmp esi, ecx
je 0x47c8b8
cmp eax, dword [ecx + 0x28]
je 0x47c8b8
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 - 0x44], eax
mov dword [esi + 0x28], edi
cmp dword [ebp - 0x18], edi
jne 0x47c8c7
mov eax, dword [esi + 0x28]
cmp eax, edi
je 0x47c8c7
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
cmp word [eax], 0
je 0x47c906
cmp dword [ebp + 0xc], 0
je 0x47c906
push str.LEAVE:
lea ecx, [ebp + 0x14]
call fcn.00445746
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.0043d411
push 0
push 0x11
push 0
push dword [ebp + 0x14]
mov ecx, esi
call fcn.0041ab5d
lea ecx, [ebp + 0x14]
call fcn.00437884
cmp dword [ebp + 0x1c], 0
mov eax, dword [esi + 0x8c]
mov dword [ebp + 0x10], eax
je 0x47c92d
cmp dword [ebp - 0x38], 1
je 0x47c92d
cmp dword [ebp - 0x38], 0
jne 0x47c956
push dword [ebp - 0x58]
mov ecx, esi
call fcn.0042e9eb
jmp 0x47c956
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x48], eax
mov al, byte [ebp + 0xb]
mov byte [esi + 9], al
mov al, byte [ebp - 3]
push ebx
mov byte [esi + 0x92], al
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
xor edi, edi
cmp dword [esi + 0x28], edi
je 0x47c963
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0xc]
cmp eax, edi
je 0x47c970
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x28], ecx
lea ecx, [ebp - 0x64]
call fcn.004455bc
mov ecx, dword [ebp - 0x44]
cmp ecx, edi
je 0x47c986
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov esi, dword [ebp - 0x48]
cmp esi, edi
je 0x47c99c
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
dec dword [esi + 0xd4]
jmp 0x47c9aa
mov esi, dword [ebp - 0x34]
cmp esi, edi
je 0x47c9c7
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp byte [esi + 0x75], 0x81
je 0x47c9c0
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.0043bf08
cmp dword [ebp - 0x1c], edi
je 0x47cab5
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [ebp - 0x38], edi
je 0x47c9eb
cmp dword [ebp - 0xc], edi
je 0x47c9eb
xor edi, edi
inc edi
jmp 0x47c9ed
xor edi, edi
mov esi, dword [ebp - 8]
push 0xffffffffffffffff
push 0
push 0x4a7216
mov ecx, esi
call fcn.00412ddf
test eax, eax
je 0x47ca27
push dword [ebp - 0x28]
push 0x4a7218
call fcn.0043bf7f
test edi, edi
pop ecx
pop ecx
je 0x47ca27
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
push 0x4a7214
call fcn.0043cc80
push 0xffffffffffffffff
push 0
push 0x4a7202
mov ecx, esi
call fcn.00412ddf
test eax, eax
je 0x47ca5e
push dword [ebp - 0x24]
push 0x4a7204
call fcn.0043bf7f
test edi, edi
pop ecx
pop ecx
je 0x47ca5e
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
push str.CurDrv
call fcn.0043cc80
push 0xffffffffffffffff
push 0
push 0x4a722a
mov ecx, esi
call fcn.00412ddf
test eax, eax
je 0x47ca95
push dword [ebp - 0x20]
push 0x4a722c
call fcn.0043bf7f
test edi, edi
pop ecx
pop ecx
je 0x47ca95
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
push str.CurFile
call fcn.0043cc80
cmp word [ebp - 0x4c], 0
jne 0x47caaa
push dword [ebp - 0x2c]
call fcn.00410023
pop ecx
call fcn.00412b2c
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
xor edi, edi
jmp 0x47cab8
mov esi, dword [ebp - 8]
cmp dword [esi + 0x28], edi
je 0x47cac3
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x28], eax
cmp byte [ebp - 1], 0
jne 0x47cad1
push edi
mov ecx, esi
call fcn.0045fcd8
lea ecx, [ebp - 0x20]
call fcn.00437884
lea ecx, [ebp - 0x24]
call fcn.00437884
lea ecx, [ebp - 0x28]
call fcn.00437884
lea ecx, [ebp - 0x2c]
call fcn.00437884
lea ecx, [ebp - 0x30]
call fcn.0041c7a8
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x18