Function at 0x454090
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4d8191
push eax
mov eax, 0x393c
mov dword fs:[0], esp
call fcn.004d3780
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3960]
mov esi, ecx
test edi, edi
je 0x454891
push 0
push edi
call dword [sym.imp.USER32.dll_GetMenuItemID]
cmp eax, 0x8056
je 0x4540e0
cmp dword [esi + 0x2dd24], edi
jne 0x454891
mov eax, dword [esi + 0x2d8b8]
cmp edi, eax
mov eax, dword [esp + 0x395c]
jne 0x4540fa
cmp eax, 5
jb 0x454891
cmp edi, dword [esi + 0x2dd24]
je 0x45410e
cmp eax, dword [esi + 0x2df44]
jb 0x454891
push 1
push eax
push edi
call fcn.004bcba0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x454891
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov cx, word [0x4ffec0]
mov edx, dword [esp + 0x10]
mov word [esp + 0x66c], cx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x66e]
rep stosd dword es:[edi], eax
lea ebx, [esi + 0x2d8c4]
push edx
mov ecx, ebx
stosw word es:[edi], ax
call fcn.004af190
mov edx, dword [esp + 0x10]
mov ebp, eax
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x250]
mov dword [esp + 0x248], eax
mov dword [esp + 0x244], 0xffffffff
mov dword [esp + 0x24c], eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x244]
mov dword [esp + 0x458], eax
push ecx
mov dword [esp + 0x460], eax
push edx
push ebx
mov dword [esp + 0x20], ebp
mov word [esp + 0x46c], ax
call fcn.0042c110
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x66c]
push 0x104
push eax
push ecx
mov ecx, ebx
call fcn.004aefe0
test eax, eax
je 0x454891
mov edx, dword [0x6dcf80]
push 0x9f
push edx
call dword [sym.imp.USER32.dll_LoadMenuW]
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
je 0x454891
push edi
lea ecx, [esi + 0x2c600]
call fcn.004bcac0
push ebp
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
test edi, edi
je case.0x454776.41090
mov ebp, dword [sym.imp.USER32.dll_DeleteMenu]
push 0
push 0x80dd
push edi
call ebp
push 0
push 0xa05c
push edi
call ebp
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x454281
lea eax, [esp + 0x458]
push 0x4ebc40
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x454264
push 0
push 0xa07d
push edi
call ebp
mov ecx, dword [esp + 0x10]
push 0
push ecx
push ebx
call fcn.0042c920
add esp, 8
neg eax
sbb eax, eax
add eax, 0xa07f
push eax
push edi
call ebp
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0
push edx
push eax
push ecx
push 0x103
push edi
call fcn.004bd130
mov edi, eax
add esp, 0x18
cmp edi, 0xa07d
ja 0x45475f
je 0x454590
lea eax, [edi - 0x8021]
cmp eax, 0x3d
ja case.0x454776.41090
xor edx, edx
mov dl, byte [eax + 0x4548c4]
jmp dword [edx*4 + 0x4548ac]
lea ecx, [esp + 0x18bc]
call fcn.004a94b0
lea eax, [esp + 0x66c]
lea ecx, [esp + 0x18bc]
push eax
mov dword [esp + 0x3958], 0
call fcn.004a94d0
push eax
call fcn.004b06b0
add esp, 4
lea ecx, [esp + 0x18bc]
mov dword [esp + 0x3954], 0xffffffff
call fcn.00437c40
jmp case.0x454776.41090
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.004af8d0
lea edx, [esi + 0x43d8]
test edx, edx
je 0x4543a3
add esi, 0x43dc
jmp 0x4543a5
lea ebp, [esi + 0x43d8]
test ebp, ebp
je 0x454351
lea eax, [esi + 0x43dc]
jmp 0x454353
xor eax, eax
mov ecx, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1f
push ecx
call edi
lea edx, [esi + 0x6184]
test edx, edx
je 0x454377
lea eax, [esi + 0x6188]
jmp 0x454379
xor eax, eax
mov eax, dword [eax + 4]
push 0
push 0
push 0x1f
push eax
call edi
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push ecx
push 1
push edx
mov ecx, ebx
call fcn.004af7c0
test ebp, ebp
je 0x4543a3
add esi, 0x43dc
jmp 0x4543a5
xor esi, esi
mov eax, dword [esi + 4]
push 0
push 0
push 0x1f
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp case.0x454776.41090
lea ebp, [esi + 0x43d8]
test ebp, ebp
je 0x4543cc
lea eax, [esi + 0x43dc]
jmp 0x4543ce
xor eax, eax
mov eax, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1f
push eax
call edi
lea ecx, [esi + 0x6184]
test ecx, ecx
je 0x4543f2
lea eax, [esi + 0x6188]
jmp 0x4543f4
xor eax, eax
mov eax, dword [eax + 4]
push 0
push 0
push 0x1f
push eax
call edi
mov eax, dword [esi + 0x2df58]
mov ecx, esi
test eax, eax
je 0x454413
call fcn.00454e50
jmp 0x454418
call fcn.00454cb0
lea ecx, [esp + 0x18bc]
call fcn.004a94b0
mov dx, word [0x4ffec0]
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x876]
mov word [esp + 0x874], dx
mov word [esp + 0x464], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [esp + 0x10]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x466]
rep stosd dword es:[edi], eax
push edx
mov ecx, ebx
mov dword [esp + 0x3958], 1
stosw word es:[edi], ax
call fcn.004af190
test eax, eax
jne 0x4544c3
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x464]
push 0x104
push eax
push ecx
mov ecx, ebx
call fcn.004aefe0
lea edx, [esp + 0x464]
lea ecx, [esp + 0x18bc]
push edx
call fcn.004a94d0
push eax
push 0x4eb504
lea eax, [esp + 0x87c]
push 0x823
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [esp + 0x464]
push ecx
call edi
mov edx, dword [esi + 4]
lea eax, [esp + 0x10]
push edx
push 1
push eax
mov ecx, ebx
call fcn.004af7f0
test ebp, ebp
je 0x4544f1
lea eax, [esi + 0x43dc]
jmp 0x4544f3
xor eax, eax
mov eax, dword [eax + 4]
push 0
push 0
push 0x1f
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.004af8a0
test eax, eax
jne 0x45454c
mov edx, dword [esp + 0x395c]
push eax
mov eax, dword [esp + 0x3964]
push edx
push eax
mov ecx, esi
call fcn.004528f0
push 0
lea ecx, [esp + 0x878]
push 0
lea edx, [esp + 0x46c]
push ecx
push edx
call edi
push eax
push 1
call fcn.00438870
add esp, 0x14
mov eax, dword [esp + 0x3960]
push eax
call fcn.004bdbc0
mov eax, dword [esi + 0x2df58]
add esp, 4
test eax, eax
mov ecx, esi
je 0x45456f
call fcn.00454de0
jmp 0x454574
call fcn.00454c40
lea ecx, [esp + 0x18bc]
mov dword [esp + 0x3954], 0xffffffff
call fcn.00437c40
jmp case.0x454776.41090
mov dx, word [0x4ffec0]
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x876]
mov word [esp + 0x874], dx
mov word [esp + 0x18bc], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x18be]
mov word [esp + 0x464], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [esp + 0x10]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x466]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x464]
push 0x104
push ecx
push edx
mov ecx, ebx
stosw word es:[edi], ax
call fcn.004aefe0
test eax, eax
je case.0x454776.41090
lea ecx, [esp + 0x2904]
call fcn.004a94b0
lea eax, [esp + 0x464]
lea ecx, [esp + 0x2904]
push eax
mov dword [esp + 0x3958], 2
call fcn.004a94d0
push eax
push 0x4eb504
lea ecx, [esp + 0x18c4]
push 0x823
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [esi + 0x24acc]
xor ebp, ebp
add esp, 0x10
cmp ecx, ebp
je 0x454743
lea edx, [esp + 0x874]
push ebp
push edx
call fcn.0049f9d0
test eax, eax
je 0x454743
lea eax, [esp + 0x874]
lea ecx, [esp + 0x464]
push eax
push ecx
call fcn.00434280
add esp, 8
test eax, eax
je 0x454743
mov edx, dword [esp + 0x10]
mov ecx, ebx
push edx
call fcn.004af240
mov edx, eax
cmp edx, ebp
je 0x45470d
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x2c], ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x238], eax
push ecx
mov dword [esp + 0x240], eax
push edx
push ebx
mov word [esp + 0x24c], ax
call fcn.0042c110
mov edi, dword [esp + 0x3968]
mov ebx, dword [esp + 0x396c]
add esp, 0xc
mov ecx, esi
push ebp
push edi
push ebx
call fcn.004528f0
lea edx, [esp + 0x24]
push edi
push edx
push ebx
mov ecx, esi
call fcn.00452d10
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea eax, [esp + 0x18bc]
lea ecx, [esp + 0x464]
push eax
push ecx
call esi
push eax
lea edx, [esp + 0x87c]
lea eax, [esp + 0x46c]
push edx
push eax
call esi
push eax
push 2
call fcn.00438870
add esp, 0x14
lea ecx, [esp + 0x2904]
mov dword [esp + 0x3954], 0xffffffff
call fcn.00437c40
jmp case.0x454776.41090
lea eax, [edi - 0xa07e]
cmp eax, 0x2b
ja case.0x454776.41090
xor ecx, ecx
mov cl, byte [eax + 0x454918]
jmp dword [ecx*4 + 0x454904]
mov edx, dword [esp + 0x10]
mov ecx, ebx
push edx
call fcn.004af190
test eax, eax
push 0
je 0x4547ac
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp edi, 0x805e
sete al
push eax
push ecx
mov ecx, esi
call fcn.00459c60
jmp case.0x454776.41090
push 0
push 0
push 0
lea edx, [esp + 0x67c]
push 1
push edx
mov ecx, esi
call fcn.00451540
jmp case.0x454776.41090
push 1
jmp 0x4547ce
push 0
mov eax, dword [esp + 0x14]
push eax
push ebx
call fcn.0042c890
mov ecx, dword [esp + 0x254]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.004af240
mov edi, dword [esp + 0x395c]
mov ebx, dword [esp + 0x3960]
push 0
push edi
push ebx
mov ecx, esi
mov dword [esp + 0x254], eax
call fcn.004528f0
lea edx, [esp + 0x244]
push edi
push edx
push ebx
mov ecx, esi
call fcn.00452d10
jmp case.0x454776.41090
call dword [sym.imp.USER32.dll_EndMenu]
mov ax, word [0x4ffec0]
mov ecx, 0x81
mov word [esp + 0x24], ax
xor eax, eax
lea edi, [esp + 0x26]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
push ecx
stosw word es:[edi], ax
call fcn.00432c00
add esp, 8
cmp word [esp + 0x24], 0
jne 0x454869
push 1
lea edx, [esp + 0x28]
push 6
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x24]
push 1
push eax
call fcn.004a7ba0
lea ecx, [esp + 0x2c]
push 1
push ecx
call fcn.0042aa70
add esp, 0x10
mov edx, dword [esp + 0x18]
push edx
call fcn.004bcf20
add esp, 4
mov ecx, dword [esp + 0x394c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3948
ret 8