Function at 0x4012d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov dword [ebp - 0x54], 0x4b5b
cmp dword [ebp - 0x54], 0x7696
ja 0x401871
lea eax, [ebp - 0x54]
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x21], 6
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx]
shl edx, 0xb1
cmp edx, dword [ebp - 0x54]
je 0x40180c
mov dword [ebp - 0x44], 0x7096
mov al, byte [ebp - 0x21]
mov byte [ebp - 0x6d], al
movzx ecx, word [ebp + 0xc]
sar ecx, 0x23
movzx edx, word [ebp + 8]
cmp ecx, edx
jl 0x4017cc
movzx eax, word [ebp + 8]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x401346
jmp 0x4016a4
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x90], ecx
lea edx, [ebp - 0x54]
mov dword [ebp - 0x60], edx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x90]
mov eax, dword [ecx]
mov ecx, dword [edx]
sar eax, cl
cmp eax, dword [ebp - 0x44]
jne 0x40137f
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx]
and edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x84]
mov dword [eax], edx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
imul ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x4c]
add eax, dword [edx]
cmp ecx, eax
jbe 0x4013c8
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x44]
sub edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov byte [ebp - 0x59], 0x70
mov eax, 0x701
mov word [ebp - 0x8c], ax
movsx ecx, word [ebp - 0x8c]
cmp ecx, 0x1b3
jge 0x40140b
movsx edx, byte [ebp - 0x6d]
add edx, 0x6f
mov byte [ebp - 0x21], dl
mov ax, word [ebp + 8]
mov word [ebp + 0xc], ax
movzx ecx, word [ebp + 0xc]
push ecx
movzx edx, word [ebp + 8]
push edx
call fcn.004012d0
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax]
sub ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x90]
mov dword [edx], ecx
mov al, byte [ebp - 0x59]
mov byte [ebp - 0x11], al
mov cl, byte [ebp - 0x11]
mov byte [ebp - 0x9c], cl
cmp byte [ebp - 0x9c], 0x70
je 0x401425
jmp 0x40147d
mov dx, word [ebp + 0xc]
mov word [ebp - 0x38], dx
movzx eax, word [ebp + 0xc]
movzx ecx, word [ebp - 0x38]
and eax, ecx
movzx edx, word [ebp + 8]
cmp eax, edx
jg 0x40145f
lea eax, [ebp - 0x54]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x90]
add ecx, dword [edx]
mov dword [ebp - 0x30], ecx
jmp 0x40147b
movsx eax, byte [ebp - 0x6d]
sub eax, 0x36
movsx ecx, byte [ebp - 0x21]
cmp eax, ecx
jne 0x40147b
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.USER32.dll_ArrangeIconicWindows]
mov dword [ebp - 0x40], eax
jmp 0x4014b5
mov ax, word [ebp - 0x38]
mov word [ebp + 8], ax
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x30]
sub edx, dword [ecx]
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x80]
call fcn.0056de90
movzx edx, word [ebp + 0xc]
movzx eax, word [ebp + 8]
add edx, eax
mov word [ebp - 0x38], dx
movsx ecx, word [ebp - 0x8c]
cmp ecx, 0x456
jge 0x401508
lea edx, [ebp - 0x90]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x80]
sar edx, cl
mov eax, dword [ebp - 0x90]
mov dword [eax], edx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
or edx, dword [ebp - 0x30]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0x40]
mov ecx, dword [eax]
shl edx, cl
mov dword [ebp - 0x54], edx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x60]
mov eax, dword [ecx]
xor eax, dword [edx]
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x40]
and edx, dword [ecx]
cmp eax, edx
je 0x4015c2
call section..text
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x44]
add ecx, dword [eax]
mov dword [ebp - 0x30], ecx
movzx edx, word [ebp + 0xc]
mov dword [ebp - 0xa0], edx
cmp dword [ebp - 0xa0], 0x262
je 0x40155f
cmp dword [ebp - 0xa0], 0x893
je 0x4015b3
jmp 0x4015c0
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
mov dword [ebp - 0x88], eax
movsx eax, byte [ebp - 0x21]
sub eax, 0x1c
movsx ecx, byte [ebp - 0x6d]
cmp eax, ecx
jg 0x4015b1
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x48]
shr edx, cl
mov eax, dword [ebp - 0x60]
mov dword [eax], edx
movzx ecx, byte [ebp - 0x11]
or ecx, 0x37
mov byte [ebp - 0x59], cl
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x78]
mov edx, dword [edx]
mov ecx, dword [eax]
shl edx, cl
mov eax, dword [ebp - 0x60]
mov dword [eax], edx
jmp 0x4015c0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.USER32.dll_LockWindowUpdate]
mov dword [ebp - 0x6c], eax
jmp 0x4015e1
lea edx, [ebp - 0x80]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
xor ecx, dword [ebp - 0x44]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x34], edx
mov ax, word [ebp - 0x38]
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x50]
push ecx
push 0x7d
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_GetScrollBarInfo]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0x7ae1
je 0x40160b
jmp 0x40160d
jmp 0x40161a
call fcn.004018f0
mov cx, word [ebp - 0x38]
mov word [ebp + 8], cx
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x18]
mov ecx, dword [edx]
sub ecx, dword [eax]
mov edx, dword [ebp - 0x7c]
mov dword [edx], ecx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x84]
add ecx, dword [edx]
mov eax, dword [ebp - 0x78]
mov edx, dword [eax]
sub edx, dword [ebp - 8]
cmp ecx, edx
ja 0x40164f
movsx eax, byte [ebp - 0x6d]
add eax, 0x24
mov byte [ebp - 0x21], al
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x78]
add edx, dword [eax]
mov ecx, dword [ebp - 0x84]
mov dword [ecx], edx
movzx edx, word [ebp + 0xc]
push edx
movzx eax, word [ebp - 0x38]
push eax
call fcn.004012d0
push 5
push 3
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.USER32.dll_GetMenuState]
mov dword [ebp - 0x48], eax
movzx edx, word [ebp + 0xc]
movzx eax, word [ebp + 8]
and edx, eax
mov word [ebp - 0x38], dx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x90]
mov dword [eax], edx
jmp 0x401749
cmp dword [ebp - 0x44], 0x22f0
jne 0x4016cf
mov cx, word [ebp + 8]
mov word [ebp + 0xc], cx
push 0xa3
lea edx, [ebp - 0x84]
push edx
push 0x3b
call dword [sym.imp.USER32.dll_CharNextExA]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x44]
push eax
mov edx, 0xb0
mov ecx, dword [ebp - 0x44]
call fcn.0056de90
movsx ecx, byte [ebp - 0x6d]
add ecx, 0x50
mov byte [ebp - 0x21], cl
movzx edx, word [ebp + 0xc]
push edx
movzx eax, word [ebp + 0xc]
push eax
call fcn.004012d0
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx]
or edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x84]
mov dword [eax], edx
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
mov dword [ebp - 0x50], eax
call section..text
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4c]
shl edx, cl
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
xor ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x84]
mov dword [edx], ecx
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x54]
imul ecx, dword [eax]
cmp ecx, dword [ebp - 0x4c]
jne 0x4017bb
mov edx, dword [ebp - 0x44]
and edx, 0x3d7f
mov dword [ebp - 0x44], edx
movsx eax, byte [ebp - 0x21]
add eax, 0x26
mov byte [ebp - 0x6d], al
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx]
sub edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x84]
mov dword [eax], edx
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, 0x9a
mov ecx, dword [ebp - 0x44]
call fcn.0056de90
mov dx, word [ebp + 0xc]
mov word [ebp + 8], dx
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x4c]
sub edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x84]
mov dword [eax], edx
push 0xd5
push 0x1b
push 0x5b
push 0x1e
call dword [sym.imp.USER32.dll_keybd_event]
mov ecx, dword [ebp - 0x54]
xor ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x84]
mov dword [edx], ecx
mov eax, dword [ebp - 0x44]
push eax
mov edx, 0x97
mov ecx, dword [ebp - 0x44]
call fcn.0056de90
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx]
add edx, dword [ebp - 0x4c]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
sub ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x84]
mov dword [edx], ecx
mov al, byte [ebp - 0x21]
mov byte [ebp - 0xa8], al
cmp byte [ebp - 0xa8], 0x40
je 0x401820
jmp 0x401834
push 0x68
push 0x5a
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.USER32.dll_EnableScrollBar]
mov dword [ebp - 0x88], eax
push 0xa2
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
or ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x84]
mov dword [edx], ecx
mov ax, word [ebp + 8]
mov word [ebp + 0xc], ax
call fcn.004018f0
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx]
mov dword [ebp - 0x4c], edx
call section..text
mov eax, dword [ebp - 0x54]
add eax, 0x65f5
cmp eax, 0xcad0
jb 0x4018dd
mov ecx, dword [ebp - 0x54]
sub ecx, 0x4958
mov dword [ebp - 0x54], ecx
push 0xc4
mov edx, 0x7d
mov ecx, 0x94
call fcn.0056de90
mov dx, word [ebp + 0xc]
mov word [ebp + 8], dx
movzx eax, word [ebp + 8]
push eax
movzx ecx, word [ebp + 0xc]
push ecx
call fcn.004012d0
mov edx, dword [ebp - 0x54]
and edx, 0xf4e6
mov dword [ebp - 0x54], edx
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_GetCaretPos]
mov dword [ebp - 0x6c], eax
mov cx, word [ebp + 8]
mov word [ebp + 0xc], cx
mov eax, 0x15
mov esp, ebp
pop ebp
ret 8