Function at 0x4422d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 0
push edi
test esi, esi
je 0x4429cf
mov eax, dword [esi]
test eax, eax
je 0x4429cf
cmp dword [esi + 8], 0
je 0x4429cf
cmp dword [esi + 0xc], 0
je 0x4429cf
inc eax
push 8
push eax
call fcn.0049570f
mov ebx, eax
add esp, 8
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x4429cf
inc dword [0x4fadf8]
xor eax, eax
mov ecx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x38], eax
cmp dword [esi], eax
jbe 0x44248d
jmp 0x442376
mov ecx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ebx, [eax*4]
mov eax, dword [esi + 8]
mov dword [ebp - 0x48], ebx
mov edi, dword [ebx + eax]
test edi, edi
jne 0x44238e
xor esi, esi
jmp 0x4423f3
cmp byte [edi], 0
jne 0x4423a3
push 2
push 1
call fcn.0049570f
add esp, 8
mov esi, eax
jmp 0x4423ed
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call ecx
mov ebx, eax
cmp ebx, 1
jle 0x4423eb
push 2
push ebx
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x4423eb
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call eax
cmp eax, ebx
je 0x4423ed
push esi
call fcn.004998ec
add esp, 4
xor esi, esi
mov ecx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
shl eax, 3
mov dword [ebp - 0x3c], eax
mov dword [eax + edx + 4], esi
mov eax, dword [ebx + 0xc]
mov ebx, dword [ebp - 0x48]
mov ebx, dword [ebx + eax]
test ebx, ebx
je 0x442470
cmp byte [ebx], 0
jne 0x442428
push 2
push 1
call fcn.0049570f
add esp, 8
mov esi, eax
jmp 0x442472
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call ecx
mov edi, eax
cmp edi, 1
jle 0x442470
push 2
push edi
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x442470
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call eax
cmp eax, edi
je 0x442472
push esi
call fcn.004998ec
add esp, 4
xor esi, esi
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x1c]
mov dword [eax + ebx], esi
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, dword [esi]
jb 0x442370
lea eax, [ebx + eax*8]
mov dword [eax + 4], 0x4e5914
push 0xc23
mov dword [ebp - 0x3c], eax
call fcn.0041afe0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4424ba
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor esi, esi
jmp 0x442537
cmp byte [edi], 0
jne 0x4424d5
push 2
push 1
call fcn.0049570f
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 8
mov esi, eax
jmp 0x442537
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
cmp ebx, 1
jg 0x4424f8
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x442532
push 2
push ebx
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
jne 0x442511
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x442532
push ebx
push esi
push 0xffffffffffffffff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0xfde9
call edi
cmp eax, ebx
je 0x442534
push esi
call fcn.004998ec
add esp, 4
xor esi, esi
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x3c]
mov ecx, 0x4bc660
cmp dword [ebp - 0x30], 0
mov dword [eax], esi
lea eax, [ebp - 0x18]
push eax
push 0x4bc640
push 3
mov eax, 0x4bc670
push 0
cmove eax, ecx
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x442571
mov edx, dword [ebp - 0x18]
test edx, edx
jne 0x4425c0
mov eax, 0xc0083de1
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00440bb0
push eax
push str.CoCreateInstance_for_FileOpenDialog_failed:__s
call fcn.004407e0
add esp, 8
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004998ec
mov ecx, dword [ebp - 0x18]
add esp, 4
test ecx, ecx
je 0x4425a6
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 8]
call eax
dec dword [0x4fadf8]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
mov ecx, dword [edx]
push ebx
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
inc eax
push eax
mov eax, dword [ecx + 0x10]
push edx
call eax
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x442641
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x374de290
push eax
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x4565123f
push eax
mov dword [ebp - 0xc], 0xc4396491
mov dword [ebp - 8], 0x7b465e92
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x4426db
lea eax, [ebp - 0x34]
push eax
push 0x4bc620
push 0
push dword [ebp - 0x20]
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x442633
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x2c]
call eax
push dword [ebp - 0x20]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x4426db
cmp byte [eax], 0
jne 0x442656
push 2
push 1
call fcn.0049570f
add esp, 8
mov esi, eax
jmp 0x4426a2
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
mov edi, eax
cmp edi, 1
jle 0x4426a0
push 2
push edi
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x4426a0
mov edx, dword [ebp - 0x2c]
push edi
push esi
push 0xffffffffffffffff
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x4426a2
push esi
call fcn.004998ec
add esp, 4
xor esi, esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x20], esi
push eax
push 0x4bc620
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x4426c9
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x30]
call eax
push dword [ebp - 0x20]
call fcn.004998ec
add esp, 4
mov dword [ebp - 0x20], 0
mov esi, dword [ebx + 4]
test esi, esi
je 0x44273a
cmp byte [esi], 0
je 0x44273a
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
cmp ebx, 1
jg 0x442706
xor edi, edi
jmp 0x442758
push 2
push ebx
call fcn.0049570f
mov edi, eax
add esp, 8
test edi, edi
je 0x442758
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x44274c
push edi
call fcn.004998ec
add esp, 4
xor edi, edi
jmp 0x442758
push 2
push 1
call fcn.0049570f
mov edi, eax
add esp, 8
test edi, edi
je 0x442758
mov eax, dword [ebp - 0x18]
push edi
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x3c]
call eax
mov ebx, dword [ebp - 0x28]
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4427cb
mov ebx, dword [ebx]
test ebx, ebx
jne 0x44276f
xor esi, esi
jmp 0x4427e9
cmp byte [ebx], 0
je 0x4427cb
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x2c], eax
cmp eax, 1
jg 0x442794
xor esi, esi
jmp 0x4427e9
push 2
push eax
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x4427e9
push dword [ebp - 0x2c]
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, dword [ebp - 0x2c]
je 0x4427dd
push esi
call fcn.004998ec
add esp, 4
xor esi, esi
jmp 0x4427e9
push 2
push 1
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x4427e9
mov eax, dword [ebp - 0x18]
push esi
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x58]
call eax
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x4427f4
xor edx, edx
jmp 0x4427f6
mov edx, dword [eax]
mov eax, dword [ebp - 0x18]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [ebp - 0x18]
push dword [0x5430c4]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
call eax
mov edx, dword [ebp - 0x40]
mov ebx, eax
mov dword [ebp - 0x30], ebx
test edx, edx
je 0x44282b
mov eax, dword [ebp - 0x18]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
push esi
call fcn.004998ec
add esp, 4
push edi
call fcn.004998ec
mov edi, dword [ebp - 0x28]
xor esi, esi
add esp, 4
cmp dword [edi], esi
jbe 0x44287e
mov ebx, dword [ebp - 0x1c]
lea esp, [esp]
push dword [ebx + esi*8 + 4]
call fcn.004998ec
add esp, 4
mov dword [ebx + esi*8 + 4], 0
push dword [ebx + esi*8]
call fcn.004998ec
mov dword [ebx + esi*8], 0
add esp, 4
inc esi
cmp esi, dword [edi]
jb 0x442850
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x1c]
push dword [edi + esi*8]
call fcn.004998ec
add esp, 4
mov dword [edi + esi*8], 0
push edi
call fcn.004998ec
add esp, 4
mov dword [ebp - 0x1c], 0
test ebx, ebx
js 0x4429ad
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x44]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
js 0x44258b
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x20]
push edx
push 0x80058000
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
js 0x442983
mov edi, dword [ebp - 0x20]
cmp word [edi], 0
jne 0x44290f
push 1
push 1
call fcn.0049570f
add esp, 8
mov dword [ebp - 0x24], eax
push dword [ebp - 0x20]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
jmp 0x44258b
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call ebx
mov esi, eax
cmp esi, 1
jle 0x442963
push 1
push esi
call fcn.0049570f
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je 0x442963
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call ebx
cmp eax, esi
je 0x44296a
push dword [ebp - 0x24]
call fcn.004998ec
add esp, 4
mov dword [ebp - 0x24], 0
push dword [ebp - 0x20]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
jmp 0x44258b
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00440bb0
push eax
push str.Unable_to_access_file_path:__s
call fcn.004407e0
mov eax, dword [ebp - 0x44]
add esp, 8
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 8]
call eax
jmp 0x44258b
cmp bx, 0x4c7
je 0x44258b
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00440bb0
push eax
push str.Could_not_show_FileOpenDialog:__s
jmp 0x442583
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491940
mov esp, ebp
pop ebp
ret