Function at 0x10019e2a
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
sub esp, 0x820
lea ebp, [esp - 4]
mov eax, dword [0x10071ef0]
xor eax, ebp
mov dword [ebp + 0x820], eax
push 0x68
mov eax, 0x100419ea
call fcn.1003e7e6
push 0x208
xor esi, esi
lea eax, [ebp + 0x208]
mov ebx, ecx
push esi
push eax
mov dword [ebp - 0x14], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp + 0x208]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebx + 0xb8]
push 0x206
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0x61a]
push esi
push eax
mov dword [ebp - 0x74], 0x58
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], 0x881804
mov word [ebp - 0x3c], si
mov word [ebp - 0x3a], si
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov word [ebp + 0x618], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
push 0xfca
push eax
call fcn.100012eb
mov ecx, eax
call fcn.100194e4
push 0x10046fb8
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.10006250
lea ecx, [ebp - 0x10]
call fcn.10003da6
mov ebx, dword [sym.imp.MSVCR80.dll_wcscpy_s]
push eax
lea eax, [ebp + 0x410]
push edi
push eax
call ebx
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
inc eax
mov edx, edi
push 0x10046fb0
sub edx, eax
lea ecx, [ebp + eax*2 + 0x410]
push edx
push ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
call ebx
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCR80.dll_wcslen]
add eax, dword [ebp - 0x18]
mov word [ebp + eax*2 + 0x412], si
push 0x100730d0
lea eax, [ebp + 0x618]
push edi
push eax
call ebx
mov edi, dword [ebp - 0x14]
mov eax, dword [edi + 0xb8]
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0x618]
mov dword [ebp - 0x58], eax
lea eax, [ebp + 0x410]
push esi
mov dword [ebp - 0x68], eax
call fcn.10005577
add esp, 0x30
mov dword [ebp - 0x48], eax
lea eax, [ebp]
push eax
push esi
push esi
push 5
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x10019fb9
lea eax, [ebp]
jmp 0x10019fc0
push esi
call fcn.10005577
pop ecx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
mov ebx, eax
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp ebx, esi
je 0x1001a013
cmp word [ebp + 0x618], si
je 0x1001a03f
lea eax, [ebp + 0x618]
push eax
lea ecx, [edi + 0x54]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea eax, [ebp + 0x618]
push eax
push 0x417
push dword [edi + 0xb8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
jmp 0x1001a03f
lea ecx, [edi + 0x54]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::size_void_const]
test eax, eax
jne 0x1001a03f
push esi
push esi
push 0xf1
push 0x41e
push dword [edi + 0xb8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.1000167f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x820]
xor ecx, ebp
call fcn.1003e70b
add ebp, 0x824
leave
ret