Function at 0x4742af
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
movzx edx, word [ebp + 0x14]
mov eax, dword [ebp + 0x14]
shr eax, 0x10
mov dword [ebp - 0x1c], 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
mov al, byte [0x4afb92]
mov byte [ebp - 1], al
neg ecx
sbb ecx, ecx
xor eax, eax
mov al, dl
and ecx, ebx
mov dword [ebp - 0x38], ecx
mov cl, byte [esi + 0xc]
and cl, 0x7f
xor edi, edi
and eax, 0x10
mov dword [ebp - 0x4c], eax
xor eax, eax
mov al, dl
and eax, 0x40
mov dword [ebp - 0x48], 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 0x474342
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x40], eax
jmp 0x474345
mov dword [ebp - 0x40], edi
test dl, dl
js 0x47437b
cmp byte [0x4afed5], 0
je 0x47437b
or byte [0x4afed5], 0x80
xor eax, eax
mov al, byte [0x4afed5]
and edx, 0x100
and eax, 2
or eax, edx
je 0x47437b
push esi
mov byte [0x4afed5], 0
call fcn.0040f152
pop ecx
cmp dword [ebp + 0xc], edi
mov ecx, dword [ebp + 8]
jne 0x474386
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0x18], edi
jne 0x47438e
mov dword [ebp + 0x18], ecx
mov eax, dword [esi + 0x28]
xor edx, edx
cmp eax, edi
setne dl
push ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x14], edx
call fcn.0046419c
xor eax, eax
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x30], edi
setne al
cmp eax, edi
mov dword [ebp - 0x20], eax
je 0x4743d7
push 0x20a
lea ecx, [ebp - 0x30]
call fcn.004371c5
push dword [ebp - 0x30]
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
or edi, 0xffffffff
cmp dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov ebx, 0x4b069c
je 0x474459
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push 0
push 0x49a94a
mov ecx, esi
call fcn.00411179
test eax, eax
je 0x474414
push edi
push dword [eax]
lea ecx, [ebp - 0x2c]
call fcn.004372a4
push edi
push 0
push 0x49a936
mov ecx, esi
call fcn.00411179
test eax, eax
je 0x474432
push edi
push dword [eax]
lea ecx, [ebp - 0x28]
call fcn.004372a4
push edi
push 0
push 0x49a95e
mov ecx, esi
call fcn.00411179
test eax, eax
je 0x474450
push edi
push dword [eax]
lea ecx, [ebp - 0x24]
call fcn.004372a4
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
cmp dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
je 0x47449e
cmp dword [ebp - 0x3c], 0
jne 0x47449e
push 1
call fcn.00477da0
mov dword [esp], 0x8d8
call fcn.00483528
mov edi, eax
xor eax, eax
cmp edi, eax
pop ecx
je 0x47449b
push eax
push eax
push eax
push eax
push eax
push 0x271c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov ecx, edi
call fcn.00443964
mov dword [ebp - 0x18], eax
test eax, eax
mov dword [ebp - 0x44], eax
mov edi, eax
jne 0x4744aa
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x4744b4
mov dword [ecx + 0x28], edi
xor eax, eax
test ecx, ecx
jne 0x4744db
push 0x9c
call fcn.00483528
test eax, eax
pop ecx
je 0x4744d4
push edi
push esi
mov ecx, eax
call fcn.00429378
jmp 0x4744d6
xor eax, eax
mov ecx, eax
mov dword [ebp + 0x1c], ecx
test ecx, ecx
mov dword [ebp - 0x5c], eax
je 0x4744e4
mov esi, ecx
mov ax, word [ebp - 0x1c]
mov word [esi + 0x2c], ax
mov eax, dword [esi + 0x28]
mov ebx, 0x4b069c
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 - 0x54], eax
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x58], eax
mov al, byte [esi + 9]
mov byte [ebp + 0xb], al
mov eax, dword [esi + 4]
mov dword [ebp - 0x50], eax
mov al, byte [esi + 0x92]
push ebx
mov byte [ebp - 3], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x34]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax]
push 1
push dword [ebp + 0xc]
mov ecx, esi
mov dword [esi + 0x48], ebx
call fcn.00444e2a
xor eax, eax
mov ax, word [esi + 0x2c]
push eax
push ebx
call fcn.0040f222
cmp dword [ebp - 0x14], 0
pop ecx
pop ecx
mov dword [esi + 0x50], eax
je 0x474564
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x158], eax
xor ebx, ebx
test byte [ebp + 0x14], 0x10
mov dword [esi + 0x18], ebx
je 0x474573
or byte [esi + 9], 1
test byte [ebp + 0x14], 0x20
je 0x474580
or byte [esi + 0x92], 1
cmp dword [ebp - 0x20], ebx
je 0x474594
movzx eax, word [ebp - 0x48]
push eax
push dword [ebp + 0x10]
mov ecx, esi
call fcn.0041708c
cmp dword [ebp + 0x10], ebx
jne 0x4745a0
mov dword [ebp + 0x10], 0x497994
cmp dword [ebp - 0x14], ebx
je 0x4745f1
cmp dword [ebp - 0x18], ebx
je 0x4745f1
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.0042d431
cmp byte [ebp - 1], 0
pop ecx
jne 0x4745f1
cmp dword [ebp - 0x10], ebx
je 0x4745f1
push 0x4b069c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x10]
inc dword [eax + 0xd4]
push 0x4b069c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
mov al, byte [eax + 0xb]
test al, al
je 0x4745fe
mov byte [esi + 0xb], al
cmp word [ebp - 0x4c], bx
mov al, byte [ebp - 2]
mov byte [esi + 0xa], al
jne 0x47465f
push 0x4b069c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
push 0xffffffffffffffff
push ebx
push str.__MAIN__
call fcn.00411179
cmp eax, ebx
jne 0x474630
mov eax, 0x49b370
jmp 0x474647
push dword [eax]
push 0x49fa54
call fcn.00432c89
test al, al
pop ecx
pop ecx
jne 0x474654
mov eax, 0x49ad10
push eax
push 0x4a1478
mov ecx, esi
call fcn.00436b54
push 0x4b069c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
test byte [eax + 0xc], 0x80
je 0x47466c
and byte [esi + 0xc], 0xfe
mov eax, dword [ebp + 0x10]
cmp word [eax], bx
je 0x47468f
mov al, byte [esi + 0xc]
test al, 8
jne 0x47468f
cmp byte [esi + 0x90], 0
je 0x47468f
test al, 1
mov dword [ebp + 0xc], 1
jne 0x474692
mov dword [ebp + 0xc], ebx
cmp dword [0x4afe20], ebx
je 0x4746cd
cmp dword [ebp + 0xc], ebx
je 0x4746cd
push str.ENTER:
lea ecx, [ebp + 0x14]
call fcn.004419bc
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.004371ec
push ebx
push 0x11
push ebx
push dword [ebp + 0x14]
mov ecx, esi
call fcn.0041996e
lea ecx, [ebp + 0x14]
call fcn.00431c4c
cmp dword [ebp - 0x14], ebx
mov byte [esi + 0x90], 1
je 0x474772
cmp dword [ebp - 0x18], ebx
je 0x474772
cmp byte [ebp - 1], 0
mov ecx, edi
je 0x474767
mov eax, dword [edi]
push ebx
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.00439499
add esp, 0x10
push dword [ebp + 0x18]
mov ecx, esi
mov dword [edi + 0x158], ebx
call fcn.0046e03b
cmp dword [edi + 0xd4], ebx
jg 0x474747
mov eax, dword [edi + 0xc4]
cmp dword [eax], ebx
jg 0x474747
mov eax, dword [edi + 0xd0]
cmp dword [eax], ebx
jle 0x4747cf
push ebx
push ebx
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.0047b23d
mov byte [edi + 0x75], 0x81
jmp 0x4747cf
mov byte [edi + 0x74], 0
call fcn.0047b493
jmp 0x4747cf
push dword [ebp + 0x18]
mov ecx, esi
call fcn.0046e03b
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x4747c0
cmp dword [ebp - 0x3c], ebx
jne 0x4747c0
test byte [esi + 0x91], 1
je 0x4747c0
mov ecx, dword [esi + 0x24]
cmp eax, dword [ecx + 0x28]
je 0x4747c0
cmp dword [ebp - 0x1c], eax
je 0x4747c0
mov ecx, dword [ebp - 8]
cmp esi, ecx
je 0x4747c0
cmp eax, dword [ecx + 0x28]
je 0x4747c0
push ebx
push ebx
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], ebx
cmp dword [ebp - 0x1c], ebx
jne 0x4747cf
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x4747cf
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
cmp word [eax], bx
je 0x47480a
cmp dword [ebp + 0xc], ebx
je 0x47480a
push str.LEAVE:
lea ecx, [ebp + 0x14]
call fcn.004419bc
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.004371ec
push ebx
push 0x11
push ebx
push dword [ebp + 0x14]
mov ecx, esi
call fcn.0041996e
lea ecx, [ebp + 0x14]
call fcn.00431c4c
cmp dword [ebp + 0x1c], ebx
mov eax, dword [esi + 0x8c]
mov dword [ebp + 0x14], eax
je 0x47482f
cmp dword [ebp - 0x38], 1
je 0x47482f
cmp dword [ebp - 0x38], ebx
jne 0x47485d
push dword [ebp - 0x50]
mov ecx, esi
call fcn.00429312
jmp 0x47485d
mov edi, 0x4b069c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x54]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x58]
mov dword [esi + 0x48], eax
mov al, byte [ebp + 0xb]
mov byte [esi + 9], al
mov al, byte [ebp - 3]
push edi
mov byte [esi + 0x92], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x28], ebx
je 0x474868
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x474875
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x28], ecx
lea ecx, [ebp - 0x5c]
call fcn.00441843
mov ecx, dword [ebp - 0x44]
cmp ecx, ebx
je 0x47488b
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
cmp byte [ebp - 1], 0
mov esi, 0x4b069c
jne 0x4748c7
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x4748c7
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [edi + 0xd4]
cmp byte [edi + 0x75], 0x81
je 0x4748c0
push ebx
push ebx
push 0x43d
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00435f68
cmp dword [ebp - 0x20], ebx
je 0x4749b5
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0x38], ebx
je 0x4748ed
cmp dword [ebp - 0xc], ebx
mov dword [ebp + 0x10], 1
jne 0x4748f0
mov dword [ebp + 0x10], ebx
mov edi, dword [ebp - 8]
push 0xffffffffffffffff
push ebx
push 0x49a94a
mov ecx, edi
call fcn.00411179
test eax, eax
je 0x47492a
push dword [ebp - 0x2c]
push 0x49a94c
call fcn.00435fdf
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
je 0x47492a
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
push 0x49a948
call fcn.00436b54
push 0xffffffffffffffff
push ebx
push 0x49a936
mov ecx, edi
call fcn.00411179
test eax, eax
je 0x474961
push dword [ebp - 0x28]
push 0x49a938
call fcn.00435fdf
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
je 0x474961
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
push str.CurDrv
call fcn.00436b54
push 0xffffffffffffffff
push ebx
push 0x49a95e
mov ecx, edi
call fcn.00411179
test eax, eax
je 0x474998
push dword [ebp - 0x24]
push 0x49a960
call fcn.00435fdf
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
je 0x474998
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
push str.CurFile
call fcn.00436b54
cmp word [ebp - 0x48], bx
jne 0x4749ac
push dword [ebp - 0x30]
call fcn.0040e79a
pop ecx
call fcn.00410ef3
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4749b8
mov edi, dword [ebp - 8]
cmp dword [edi + 0x28], ebx
je 0x4749c3
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x28], eax
cmp byte [ebp - 1], 0
jne 0x4749d1
push ebx
mov ecx, edi
call fcn.00449aab
lea ecx, [ebp - 0x24]
call fcn.00431c4c
lea ecx, [ebp - 0x28]
call fcn.00431c4c
lea ecx, [ebp - 0x2c]
call fcn.00431c4c
lea ecx, [ebp - 0x30]
call fcn.00431c4c
lea ecx, [ebp - 0x34]
call fcn.0041b151
mov eax, dword [ebp + 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x18