Function at 0x430f9a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x14c], edx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x13c], ebx
push edi
test esi, esi
je 0x4315b7
mov eax, dword [esi]
test eax, eax
je 0x4315b7
cmp dword [esi + 8], ebx
je 0x4315b7
cmp dword [esi + 0xc], ebx
je 0x4315b7
inc dword [0x4dca6c]
inc eax
push 8
push eax
call fcn.0047b53f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4310c2
mov eax, ebx
mov dword [ebp - 0x124], eax
cmp dword [esi], ebx
jbe 0x43104e
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + ebx*4]
call fcn.00403761
mov dword [edi + ebx*8 + 4], eax
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + ebx*4]
call fcn.00403761
mov dword [edi + ebx*8], eax
inc ebx
cmp ebx, dword [esi]
jb 0x43101e
mov dword [ebp - 0x124], ebx
xor ebx, ebx
mov eax, dword [ebp - 0x124]
push 0xc23
mov dword [edi + eax*8 + 4], 0x4ce56c
call fcn.00414768
pop ecx
mov ecx, eax
call fcn.00403761
mov ecx, dword [ebp - 0x124]
cmp dword [ebp - 0x150], 0
mov dword [edi + ecx*8], eax
lea eax, [ebp - 0x128]
push eax
push 0x4a3730
push 3
mov ecx, 0x4a3750
mov eax, 0x4a3760
push ebx
cmove eax, ecx
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x431181
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0042fc51
push eax
push str.CoCreateInstance_for_FileOpenDialog_failed:__s_n
call fcn.0042ed57
pop ecx
pop ecx
mov dword [ebp - 0x128], ebx
push edi
call fcn.004812c6
pop ecx
mov ecx, dword [ebp - 0x128]
test ecx, ecx
je 0x4310d9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push 0x58
pop edi
push edi
lea eax, [ebp - 0x1a8]
push ebx
push eax
call fcn.00478bc0
mov eax, dword [0x522464]
add esp, 0xc
cmp dword [esi + 4], 0
mov dword [ebp - 0x1a4], eax
mov eax, 0x4b4dda
cmovne eax, dword [esi + 4]
push eax
mov dword [ebp - 0x1a8], edi
lea eax, [ebp - 0x110]
push 0x4b04c8
mov edi, 0x104
push edi
push eax
call fcn.00403163
lea eax, [ebp - 0x110]
mov byte [ebp - 0xd], bl
push 0xc23
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x188], edi
call fcn.00414768
add esp, 0x14
mov dword [ebp - 0x140], eax
mov edi, ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x130], edi
cmp dword [esi], ebx
jbe 0x431442
mov edx, ebx
mov dword [ebp - 0x124], ebx
mov eax, dword [esi + 0xc]
cmp dword [edi + eax], 0
jne 0x4313d2
mov dword [ebp - 0x134], ebx
jmp 0x4313e7
mov ecx, dword [ebp - 0x128]
mov eax, dword [esi]
push edi
inc eax
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x10]
mov eax, dword [ebp - 0x14c]
test eax, eax
jne 0x431223
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x120], 0x374de290
push eax
push ebx
push ebx
lea eax, [ebp - 0x120]
mov dword [ebp - 0x11c], 0x4565123f
push eax
mov dword [ebp - 0x118], 0xc4396491
mov dword [ebp - 0x114], 0x7b465e92
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x43126c
lea eax, [ebp - 0x13c]
push eax
push 0x4a3710
push ebx
push dword [ebp - 0x12c]
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x431215
mov eax, dword [ebp - 0x128]
push dword [ebp - 0x13c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push dword [ebp - 0x12c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x43126c
mov ecx, eax
call fcn.00403761
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x12c], eax
push ecx
push 0x4a3710
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x43125a
mov eax, dword [ebp - 0x128]
push dword [ebp - 0x13c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
push dword [ebp - 0x12c]
call fcn.004812c6
pop ecx
mov dword [ebp - 0x12c], ebx
cmp dword [esi + 4], 0
mov ecx, 0x4b4dda
cmovne ecx, dword [esi + 4]
call fcn.00403761
mov edx, eax
mov dword [ebp - 0x144], edx
test edx, edx
je 0x431297
mov eax, dword [ebp - 0x128]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x128]
push dword [0x522464]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
push dword [ebp - 0x144]
mov dword [ebp - 0x140], eax
call fcn.004812c6
mov eax, ebx
pop ecx
mov dword [ebp - 0x124], eax
cmp dword [esi], ebx
jbe 0x4312f8
push dword [edi + eax*8 + 4]
call fcn.004812c6
mov eax, dword [ebp - 0x124]
pop ecx
push dword [edi + eax*8]
mov dword [edi + eax*8 + 4], ebx
call fcn.004812c6
mov eax, dword [ebp - 0x124]
pop ecx
mov dword [edi + eax*8], ebx
inc eax
mov dword [ebp - 0x124], eax
cmp eax, dword [esi]
jb 0x4312c7
push dword [edi + eax*8]
call fcn.004812c6
mov eax, dword [ebp - 0x124]
pop ecx
push edi
mov dword [edi + eax*8], ebx
call fcn.004812c6
pop ecx
mov ecx, dword [ebp - 0x140]
mov edi, ebx
test ecx, ecx
js 0x4313ad
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x148]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
js 0x431394
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x12c]
push edx
push 0x80058000
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x43136f
mov ecx, dword [ebp - 0x12c]
call fcn.0041851b
push dword [ebp - 0x12c]
mov ebx, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x431388
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0042fc51
push eax
push str.Unable_to_access_file_path:__s_n
call fcn.0042ed57
pop ecx
pop ecx
mov eax, dword [ebp - 0x148]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x128]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
dec dword [0x4dca6c]
mov eax, ebx
jmp 0x4315b9
cmp cx, 0x4c7
je 0x431394
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0042fc51
push eax
push str.Could_not_show_FileOpenDialog:__s_n
call fcn.0042ed57
pop ecx
pop ecx
jmp 0x4310c2
push dword [edi + eax]
call fcn.004816f0
mov edx, dword [ebp - 0x124]
pop ecx
mov dword [ebp - 0x134], eax
mov ecx, dword [esi + 8]
cmp dword [edx + ecx], 0
jne 0x4313f4
mov eax, ebx
jmp 0x431403
push dword [edx + ecx]
call fcn.004816f0
mov edx, dword [ebp - 0x124]
pop ecx
mov ecx, dword [ebp - 0x134]
lea eax, [eax + 3]
add edx, 4
add edi, 4
mov dword [ebp - 0x124], edx
lea eax, [ecx + eax*2]
mov ecx, dword [ebp - 0x138]
add dword [ebp - 0x130], eax
inc ecx
mov dword [ebp - 0x138], ecx
cmp ecx, dword [esi]
jb 0x431169
mov eax, dword [ebp - 0x140]
mov edi, dword [ebp - 0x130]
test eax, eax
jne 0x43144a
mov eax, ebx
jmp 0x431451
push eax
call fcn.004816f0
pop ecx
add edi, 0xc
add eax, edi
mov dword [ebp - 0x144], eax
inc eax
push eax
call fcn.004812e1
mov edi, eax
pop ecx
test edi, edi
je 0x4315b7
mov byte [edi], bl
mov ecx, ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x138], ecx
cmp dword [esi], ebx
jbe 0x4314f8
mov edx, ebx
mov dword [ebp - 0x130], ebx
mov ebx, dword [ebp - 0x144]
mov dword [ebp - 0x124], edx
mov eax, dword [esi + 8]
push dword [edx + eax]
push dword [edx + eax]
mov eax, dword [esi + 0xc]
mov edx, dword [ebp - 0x130]
push dword [eax + edx]
mov eax, ebx
sub eax, ecx
push str._s___s__r_s_r
push eax
lea eax, [ecx + edi]
push eax
call fcn.00403163
mov ecx, dword [ebp - 0x138]
add esp, 0x18
mov edx, dword [ebp - 0x124]
add ecx, eax
mov eax, dword [ebp - 0x134]
add edx, 4
add dword [ebp - 0x130], 4
inc eax
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x124], edx
cmp eax, dword [esi]
jb 0x431496
xor ebx, ebx
push dword [ebp - 0x140]
mov esi, dword [ebp - 0x144]
mov eax, esi
sub eax, ecx
push str._s__.__r._r
push eax
lea eax, [ecx + edi]
push eax
call fcn.00403163
add esp, 0x10
mov eax, ebx
test esi, esi
je 0x43152e
cmp byte [edi + eax], 0xd
jne 0x431529
mov byte [edi + eax], bl
inc eax
cmp eax, esi
jb 0x431520
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp - 0x1a8]
mov esi, dword [ebp - 0x150]
xor edx, edx
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp + 0xc]
or eax, 2
mov dword [ebp - 0x19c], edi
test esi, esi
mov dword [ebp - 0x190], 1
mov dword [ebp - 0x174], eax
setne dl
call fcn.004309d0
test eax, eax
je 0x431583
lea eax, [ebp - 0x110]
push eax
call fcn.00487101
pop ecx
mov ebx, eax
jmp 0x4315ab
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
test eax, eax
je 0x4315ab
push eax
mov ecx, 0x4c06d4
test esi, esi
mov eax, str.save
cmove eax, ecx
push eax
push str.Could_not_select_file_for__s._Error__X_n
call fcn.0042ed57
add esp, 0xc
push edi
call fcn.004812c6
pop ecx
jmp 0x4313a0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475c80
leave
ret