Function at 0x455290
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4d9711
push eax
mov eax, 0x393c
mov dword fs:[0], esp
call fcn.004d4ce0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3960]
mov esi, ecx
test edi, edi
je 0x455a91
push 0
push edi
call dword [sym.imp.USER32.dll_GetMenuItemID]
cmp eax, 0x8056
je 0x4552e0
cmp dword [esi + 0x2dd20], edi
jne 0x455a91
mov eax, dword [esi + 0x2d8b4]
cmp edi, eax
mov eax, dword [esp + 0x395c]
jne 0x4552fa
cmp eax, 5
jb 0x455a91
cmp edi, dword [esi + 0x2dd20]
je 0x45530e
cmp eax, dword [esi + 0x2df40]
jb 0x455a91
push 1
push eax
push edi
call fcn.004bdfc0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x455a91
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov cx, word [0x500df0]
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 + 0x2d8c0]
push edx
mov ecx, ebx
stosw word es:[edi], ax
call fcn.004b04e0
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.0042c4b0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x66c]
push 0x104
push eax
push ecx
mov ecx, ebx
call fcn.004b0330
test eax, eax
je 0x455a91
mov edx, dword [0x73ff28]
push 0x9f
push edx
call dword [sym.imp.USER32.dll_LoadMenuW]
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
je 0x455a91
push edi
lea ecx, [esi + 0x2c5fc]
call fcn.004bdee0
push ebp
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
test edi, edi
je case.0x455976.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 0x455481
lea eax, [esp + 0x458]
push 0x4ed8c4
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x455464
push 0
push 0xa07d
push edi
call ebp
mov ecx, dword [esp + 0x10]
push 0
push ecx
push ebx
call fcn.0042ccc0
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.004be550
mov edi, eax
add esp, 0x18
cmp edi, 0xa07d
ja 0x45595f
je 0x455790
lea eax, [edi - 0x8021]
cmp eax, 0x3d
ja case.0x455976.41090
xor edx, edx
mov dl, byte [eax + 0x455ac4]
jmp dword [edx*4 + 0x455aac]
lea ecx, [esp + 0x18bc]
call fcn.004aa800
lea eax, [esp + 0x66c]
lea ecx, [esp + 0x18bc]
push eax
mov dword [esp + 0x3958], 0
call fcn.004aa820
push eax
call fcn.004b1a30
add esp, 4
lea ecx, [esp + 0x18bc]
mov dword [esp + 0x3954], 0xffffffff
call fcn.004a21b0
jmp case.0x455976.41090
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.004b0c20
lea edx, [esi + 0x43d8]
test edx, edx
je 0x4555a3
add esi, 0x43dc
jmp 0x4555a5
lea ebp, [esi + 0x43d8]
test ebp, ebp
je 0x455551
lea eax, [esi + 0x43dc]
jmp 0x455553
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 0x455577
lea eax, [esi + 0x6188]
jmp 0x455579
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.004b0b10
test ebp, ebp
je 0x4555a3
add esi, 0x43dc
jmp 0x4555a5
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.0x455976.41090
lea ebp, [esi + 0x43d8]
test ebp, ebp
je 0x4555cc
lea eax, [esi + 0x43dc]
jmp 0x4555ce
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 0x4555f2
lea eax, [esi + 0x6188]
jmp 0x4555f4
xor eax, eax
mov eax, dword [eax + 4]
push 0
push 0
push 0x1f
push eax
call edi
mov eax, dword [esi + 0x2df54]
mov ecx, esi
test eax, eax
je 0x455613
call fcn.00456050
jmp 0x455618
call fcn.00455eb0
lea ecx, [esp + 0x18bc]
call fcn.004aa800
mov dx, word [0x500df0]
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.004b04e0
test eax, eax
jne 0x4556c3
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x464]
push 0x104
push eax
push ecx
mov ecx, ebx
call fcn.004b0330
lea edx, [esp + 0x464]
lea ecx, [esp + 0x18bc]
push edx
call fcn.004aa820
push eax
push 0x4ed128
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.004b0b40
test ebp, ebp
je 0x4556f1
lea eax, [esi + 0x43dc]
jmp 0x4556f3
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.004b0bf0
test eax, eax
jne 0x45574c
mov edx, dword [esp + 0x395c]
push eax
mov eax, dword [esp + 0x3964]
push edx
push eax
mov ecx, esi
call fcn.00453b50
push 0
lea ecx, [esp + 0x878]
push 0
lea edx, [esp + 0x46c]
push ecx
push edx
call edi
push eax
push 1
call fcn.00438e50
add esp, 0x14
mov eax, dword [esp + 0x3960]
push eax
call fcn.004befe0
mov eax, dword [esi + 0x2df54]
add esp, 4
test eax, eax
mov ecx, esi
je 0x45576f
call fcn.00455fe0
jmp 0x455774
call fcn.00455e40
lea ecx, [esp + 0x18bc]
mov dword [esp + 0x3954], 0xffffffff
call fcn.004a21b0
jmp case.0x455976.41090
mov dx, word [0x500df0]
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.004b0330
test eax, eax
je case.0x455976.41090
lea ecx, [esp + 0x2904]
call fcn.004aa800
lea eax, [esp + 0x464]
lea ecx, [esp + 0x2904]
push eax
mov dword [esp + 0x3958], 2
call fcn.004aa820
push eax
push 0x4ed128
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 0x455943
lea edx, [esp + 0x874]
push ebp
push edx
call fcn.004a0e30
test eax, eax
je 0x455943
lea eax, [esp + 0x874]
lea ecx, [esp + 0x464]
push eax
push ecx
call fcn.00434650
add esp, 8
test eax, eax
je 0x455943
mov edx, dword [esp + 0x10]
mov ecx, ebx
push edx
call fcn.004b0590
mov edx, eax
cmp edx, ebp
je 0x45590d
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.0042c4b0
mov edi, dword [esp + 0x3968]
mov ebx, dword [esp + 0x396c]
add esp, 0xc
mov ecx, esi
push ebp
push edi
push ebx
call fcn.00453b50
lea edx, [esp + 0x24]
push edi
push edx
push ebx
mov ecx, esi
call fcn.00453f70
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.00438e50
add esp, 0x14
lea ecx, [esp + 0x2904]
mov dword [esp + 0x3954], 0xffffffff
call fcn.004a21b0
jmp case.0x455976.41090
lea eax, [edi - 0xa07e]
cmp eax, 0x2b
ja case.0x455976.41090
xor ecx, ecx
mov cl, byte [eax + 0x455b18]
jmp dword [ecx*4 + 0x455b04]
mov edx, dword [esp + 0x10]
mov ecx, ebx
push edx
call fcn.004b04e0
test eax, eax
push 0
je 0x4559ac
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp edi, 0x805e
sete al
push eax
push ecx
mov ecx, esi
call fcn.0045af70
jmp case.0x455976.41090
push 0
push 0
push 0
lea edx, [esp + 0x67c]
push 1
push edx
mov ecx, esi
call fcn.00452680
jmp case.0x455976.41090
push 1
jmp 0x4559ce
push 0
mov eax, dword [esp + 0x14]
push eax
push ebx
call fcn.0042cc30
mov ecx, dword [esp + 0x254]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.004b0590
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.00453b50
lea edx, [esp + 0x244]
push edi
push edx
push ebx
mov ecx, esi
call fcn.00453f70
jmp case.0x455976.41090
call dword [sym.imp.USER32.dll_EndMenu]
mov ax, word [0x500df0]
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.00432fc0
add esp, 8
cmp word [esp + 0x24], 0
jne 0x455a69
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.004a8ef0
lea ecx, [esp + 0x2c]
push 1
push ecx
call fcn.0042ae10
add esp, 0x10
mov edx, dword [esp + 0x18]
push edx
call fcn.004be340
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