Function at 0x10090180
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 [0x100e2c3e]
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 0x10090214
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x40], eax
jmp 0x10090217
mov dword [ebp - 0x40], edi
test dl, dl
js 0x1009024f
cmp byte [0x100e3070], 0
je 0x1009024f
or byte [0x100e3070], 0x80
xor eax, eax
mov al, byte [0x100e3070]
and edx, 0x100
and eax, 2
or eax, edx
je 0x1009024f
push edi
push esi
mov byte [0x100e3070], 0
call fcn.10012b49
pop ecx
pop ecx
cmp dword [ebp + 0xc], edi
mov ecx, dword [ebp + 8]
jne 0x1009025a
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0x18], edi
jne 0x10090262
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.10079b6f
xor eax, eax
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x2c], edi
setne al
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x100902b6
push 0x20a
lea ecx, [ebp - 0x2c]
call fcn.10046168
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 0x10090334
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push edi
push 0x100ca522
mov ecx, esi
call fcn.100152b4
cmp eax, edi
je 0x100902ef
push ebx
push dword [eax]
lea ecx, [ebp - 0x28]
call fcn.10046247
push ebx
push edi
push 0x100ca50e
mov ecx, esi
call fcn.100152b4
cmp eax, edi
je 0x1009030c
push ebx
push dword [eax]
lea ecx, [ebp - 0x24]
call fcn.10046247
push ebx
push edi
push 0x100ca536
mov ecx, esi
call fcn.100152b4
cmp eax, edi
je 0x10090329
push ebx
push dword [eax]
lea ecx, [ebp - 0x20]
call fcn.10046247
push 0x100e3d7c
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 0x1009037f
cmp dword [ebp - 0x3c], edi
jne 0x1009037f
push 1
call fcn.100a0a19
mov dword [esp], 0x950
call fcn.100b4338
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x1009037a
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.100526d7
jmp 0x1009037c
xor eax, eax
mov dword [ebp - 0x14], eax
cmp eax, edi
mov dword [ebp - 0x44], eax
mov edi, eax
jne 0x1009038b
mov edi, dword [ebp - 0x50]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x10090395
mov dword [ecx + 0x28], edi
xor eax, eax
test ecx, ecx
jne 0x100903bc
push 0x9c
call fcn.100b4338
test eax, eax
pop ecx
je 0x100903b5
push edi
push esi
mov ecx, eax
call fcn.10014f6a
jmp 0x100903b7
xor eax, eax
mov dword [ebp + 0x1c], eax
mov ecx, eax
test ecx, ecx
mov dword [ebp - 0x64], eax
je 0x100903c5
mov esi, ecx
mov ax, word [ebp - 0x18]
mov word [esi + 0x2c], ax
mov eax, dword [esi + 0x28]
mov ebx, 0x100e3d7c
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.10053203
xor eax, eax
mov ax, word [esi + 0x2c]
push eax
push ebx
call fcn.10012c4c
cmp dword [ebp - 0x10], 0
pop ecx
pop ecx
mov dword [esi + 0x50], eax
je 0x10090445
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x1ac], eax
xor ebx, ebx
test byte [ebp + 0x14], 0x10
mov dword [esi + 0x18], ebx
je 0x10090454
or byte [esi + 9], 1
test byte [ebp + 0x14], 0x20
je 0x10090461
or byte [esi + 0x92], 1
cmp dword [ebp - 0x1c], ebx
je 0x10090475
movzx eax, word [ebp - 0x4c]
push eax
push dword [ebp + 0x10]
mov ecx, esi
call fcn.1001a148
cmp dword [ebp + 0x10], ebx
jne 0x10090481
mov dword [ebp + 0x10], 0x100c6a64
cmp dword [ebp - 0x10], ebx
je 0x100904d5
cmp dword [ebp - 0x14], ebx
je 0x100904d5
mov eax, dword [edi + 0x140]
mov dword [edi + 0x1a4], esi
mov dword [eax], esi
push edi
mov byte [edi + 0xc2], 1
mov byte [edi + 0xc1], 0xff
call fcn.1003a4c6
cmp dword [ebp - 0x34], ebx
pop ecx
je 0x100904d5
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x34]
inc dword [eax + 0x124]
push 0x100e3d7c
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
mov al, byte [eax + 0xb]
test al, al
je 0x100904e2
mov byte [esi + 0xb], al
cmp word [ebp - 0x54], bx
mov al, byte [ebp - 2]
mov byte [esi + 0xa], al
jne 0x10090543
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
push 0xffffffffffffffff
push ebx
push str.__MAIN__
call fcn.100152b4
cmp eax, ebx
jne 0x10090514
mov eax, 0x100cb428
jmp 0x1009052b
push dword [eax]
push 0x100d05d0
call fcn.10040e34
test al, al
pop ecx
pop ecx
jne 0x10090538
mov eax, 0x100ca904
push eax
push 0x100d28d0
mov ecx, esi
call fcn.100457c2
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
test byte [eax + 0xc], 0x80
je 0x10090550
and byte [esi + 0xc], 0xfe
mov eax, dword [ebp + 0x10]
cmp word [eax], bx
je 0x10090573
mov al, byte [esi + 0xc]
test al, 8
jne 0x10090573
cmp byte [esi + 0x90], 0
je 0x10090573
test al, 1
mov dword [ebp + 0xc], 1
jne 0x10090576
mov dword [ebp + 0xc], ebx
cmp dword [0x100e2e6c], ebx
jle 0x100905b2
cmp dword [ebp + 0xc], ebx
je 0x100905b2
push str.ENTER:
lea ecx, [ebp + 0x14]
call fcn.100501eb
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.1004618f
push ebx
push ebx
push 0x11
push ebx
push dword [ebp + 0x14]
mov ecx, esi
call fcn.1001b361
lea ecx, [ebp + 0x14]
call fcn.1003f96c
cmp dword [ebp - 0x10], ebx
mov byte [esi + 0x90], 1
je 0x10090661
cmp dword [ebp - 0x14], ebx
je 0x10090661
cmp byte [ebp - 1], 0
mov ecx, edi
push ebx
je 0x10090653
mov eax, dword [edi]
push 0x271d
mov byte [edi + 0xc1], 0x81
mov byte [edi + 0xc0], 0x10
call dword [eax + 8]
push str.__WinID
push dword [edi + 0x18]
push esi
call fcn.100104aa
add esp, 0xc
push dword [ebp + 0x18]
mov ecx, esi
mov dword [edi + 0x1ac], ebx
call fcn.10088cb8
cmp dword [edi + 0x124], ebx
jg 0x1009062d
mov eax, dword [edi + 0x114]
cmp dword [eax], ebx
jg 0x1009062d
mov eax, dword [edi + 0x120]
cmp dword [eax], ebx
jle 0x100906be
push ebx
push ebx
push 0x10
push dword [edi + 0x18]
mov byte [edi + 0xc1], 0xff
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x20
mov ecx, edi
call fcn.100a41a9
mov byte [edi + 0xc1], 0x81
jmp 0x100906be
mov byte [edi + 0xc0], 0
call fcn.100a44a6
jmp 0x100906be
push dword [ebp + 0x18]
mov ecx, esi
call fcn.10088cb8
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x100906af
cmp dword [ebp - 0x3c], ebx
jne 0x100906af
test byte [esi + 0x91], 1
je 0x100906af
mov ecx, dword [esi + 0x24]
cmp eax, dword [ecx + 0x28]
je 0x100906af
cmp dword [ebp - 0x18], eax
je 0x100906af
mov ecx, dword [ebp - 8]
cmp esi, ecx
je 0x100906af
cmp eax, dword [ecx + 0x28]
je 0x100906af
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 - 0x18], ebx
jne 0x100906be
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x100906be
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
cmp word [eax], bx
je 0x100906fa
cmp dword [ebp + 0xc], ebx
je 0x100906fa
push 0x100d28c0
lea ecx, [ebp + 0x14]
call fcn.100501eb
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.1004618f
push ebx
push ebx
push 0x11
push ebx
push dword [ebp + 0x14]
mov ecx, esi
call fcn.1001b361
lea ecx, [ebp + 0x14]
call fcn.1003f96c
cmp dword [ebp + 0x1c], ebx
mov eax, dword [esi + 0x8c]
mov dword [ebp + 0x14], eax
je 0x1009071f
cmp dword [ebp - 0x38], 1
je 0x1009071f
cmp dword [ebp - 0x38], ebx
jne 0x1009074d
push dword [ebp - 0x58]
mov ecx, esi
call fcn.10036b70
jmp 0x1009074d
mov edi, 0x100e3d7c
push edi
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 edi
mov byte [esi + 0x92], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x28], ebx
je 0x10090758
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x10090765
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x28], ecx
lea ecx, [ebp - 0x64]
call fcn.10050042
mov ecx, dword [ebp - 0x44]
cmp ecx, ebx
je 0x1009077b
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov esi, dword [ebp - 0x48]
cmp esi, ebx
mov edi, 0x100e3d7c
je 0x10090796
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [esi + 0x124]
jmp 0x100907a4
mov esi, dword [ebp - 0x34]
cmp esi, ebx
je 0x100907c4
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esi + 0xc1], 0x81
je 0x100907bd
push ebx
push ebx
push 0x43d
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.10044955
cmp dword [ebp - 0x1c], ebx
je 0x100908b2
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0x38], ebx
je 0x100907ea
cmp dword [ebp - 0xc], ebx
mov dword [ebp + 0x10], 1
jne 0x100907ed
mov dword [ebp + 0x10], ebx
mov esi, dword [ebp - 8]
push 0xffffffffffffffff
push ebx
push 0x100ca522
mov ecx, esi
call fcn.100152b4
test eax, eax
je 0x10090827
push dword [ebp - 0x28]
push 0x100ca524
call fcn.100449cc
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
je 0x10090827
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
push 0x100ca520
call fcn.100457c2
push 0xffffffffffffffff
push ebx
push 0x100ca50e
mov ecx, esi
call fcn.100152b4
test eax, eax
je 0x1009085e
push dword [ebp - 0x24]
push 0x100ca510
call fcn.100449cc
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
je 0x1009085e
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
push str.CurDrv
call fcn.100457c2
push 0xffffffffffffffff
push ebx
push 0x100ca536
mov ecx, esi
call fcn.100152b4
test eax, eax
je 0x10090895
push dword [ebp - 0x20]
push 0x100ca538
call fcn.100449cc
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
je 0x10090895
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
push str.CurFile
call fcn.100457c2
cmp word [ebp - 0x4c], bx
jne 0x100908a9
push dword [ebp - 0x2c]
call fcn.10012162
pop ecx
call fcn.10014ff4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100908b5
mov esi, dword [ebp - 8]
cmp dword [esi + 0x28], ebx
je 0x100908c0
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x28], eax
cmp byte [ebp - 1], 0
jne 0x100908ce
push ebx
mov ecx, esi
call fcn.100707a5
lea ecx, [ebp - 0x20]
call fcn.1003f96c
lea ecx, [ebp - 0x24]
call fcn.1003f96c
lea ecx, [ebp - 0x28]
call fcn.1003f96c
lea ecx, [ebp - 0x2c]
call fcn.1003f96c
lea ecx, [ebp - 0x30]
call fcn.1001cd28
mov eax, dword [ebp + 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x18