Function at 0x1004ba10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016eb14
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x1029e9c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], 0
mov eax, dword [sym.libnomacs.dll_struct_nmc::DkSettings::Sync__nmc::DkSettings::sync]
mov dword [ebp - 4], 3
cmp dword [eax + 0x1c], 0
je 0x1004ba69
mov ecx, dword [ebp + 8]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QFileInfo::constructor_void_]
mov dword [ebp - 0x14], 1
jmp 0x1004be3a
mov eax, dword [sym.libnomacs.dll_struct_nmc::DkSettings::Global__nmc::DkSettings::global]
add eax, 0x20
push 0x10195888
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10009010
add esp, 0xc
mov esi, dword [sym.imp.QtCore4.dll_public:_void___thiscall_QFileInfo::constructor_class_QString_const__]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
call esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
cmp byte [ebp + 0x20], 0
mov edi, dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QFileInfo::exists_void_const]
jne 0x1004bae2
mov eax, dword [sym.libnomacs.dll_struct_nmc::DkSettings::Global__nmc::DkSettings::global]
cmp byte [eax + 0x1d], 0
je 0x1004bac0
lea ecx, [ebp - 0x10]
call edi
test al, al
jne 0x1004bae2
mov ecx, dword [ebp + 8]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QFileInfo::constructor_void_]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 3
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QFileInfo::destructor_void_]
jmp 0x1004be3a
mov eax, dword [sym.libnomacs.dll_struct_nmc::DkSettings::Global__nmc::DkSettings::global]
mov ebx, dword [sym.imp.QtCore4.dll_public:_void___thiscall_QFileInfo::destructor_void_]
cmp byte [eax + 0x1d], 0
je 0x1004bb00
lea ecx, [ebp - 0x10]
call edi
test al, al
jne 0x1004bcae
push str.HOMEPATH
call dword [sym.imp.MSVCR120.dll_getenv]
push 0xffffffffffffffff
push eax
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
mov dword [ebp + 0x20], eax
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x1c]
push 0x101958a8
push eax
call fcn.100090b0
push str.My_Pictures_
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 8
push eax
call fcn.10009010
add esp, 0x24
push eax
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 9
call dword [sym.imp.QtCore4.dll_public:_class_QString____thiscall_QString::operator_class_QString_const__]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x1c]
call esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.QtCore4.dll_public:_class_QFileInfo____thiscall_QFileInfo::operator_class_QFileInfo__]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call ebx
lea ecx, [ebp - 0x10]
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QFileInfo::isDir_void_const]
test al, al
jne 0x1004bca1
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x38]
push eax
call sym.libnomacs.dll_public:_class_QDir___thiscall_nmc::DkImageLoader::getDir_void_
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
push ecx
mov ecx, eax
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QDir::absolutePath_void_]
mov esi, eax
push 0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xc
push str.Save_Directory
push eax
call sym.libnomacs.dll_public:_static_class_QString___cdecl_nmc::DkImageLoader::tr_char_const___char_const__
add esp, 8
mov byte [ebp - 4], 0xd
mov ecx, esp
push esi
push eax
mov dword [ecx], 1
call sym.libnomacs.dll_public:_static_class_QWidget____cdecl_nmc::DkNoMacs::getDialogParent_void_
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.QtGui4.dll_public:_static_class_QString___cdecl_QFileDialog::getExistingDirectory_class_QWidget___class_QString_const___class_QString_const___class_QFlags_enum_QFileDialog::Option__]
add esp, 0x14
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xf
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x10
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x11
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QDir::destructor_void_]
push 0x1018e610
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.10009010
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x12
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QFileInfo::constructor_class_QString_const__]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.QtCore4.dll_public:_class_QFileInfo____thiscall_QFileInfo::operator_class_QFileInfo__]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x12
call ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x11
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x10]
call edi
test al, al
jne 0x1004bc94
mov ecx, dword [ebp + 8]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QFileInfo::constructor_void_]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 7
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp + 0x20]
jmp 0x1004be27
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 6
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
push 0xffffffffffffffff
push str.yyyy_MM_dd_hh.mm.ss
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
mov dword [ebp + 0x20], eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x14
push eax
call dword [sym.imp.QtCore4.dll_public:_static_class_QDateTime___cdecl_QDateTime::currentDateTime_void_]
add esp, 0xc
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 0x15
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QDateTime::toString_class_QString_const__]
mov esi, eax
push 0x10190ec4
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10009010
push esi
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0x17
push eax
call fcn.10008fa0
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0x18
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10008fa0
add esp, 0x24
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x1a
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x1b
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x1c
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x1d
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QDateTime::destructor_void_]
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 0x1e
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QFileInfo::absolutePath_void_]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x1f
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QDir::constructor_class_QString_const__]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x20
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QFileInfo::constructor_class_QDir_const___class_QString_const__]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x22
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QDir::destructor_void_]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x23
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x18]
call edi
test al, al
jne 0x1004be0b
push dword [ebp + 0x24]
push 0xffffffffffffffff
push ecx
mov dword [ebp + 0x24], esp
mov esi, esp
push 0xffffffffffffffff
push 0x1018e3b4
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
mov dword [esi], eax
push ecx
lea eax, [ebp + 0xc]
mov dword [ebp - 0x40], esp
mov ecx, esp
mov byte [ebp - 4], 0x24
push eax
call dword [sym.imp.QtGui4.dll_public:_void___thiscall_QImage::constructor_class_QImage_const__]
mov esi, dword [sym.imp.QtCore4.dll_public:_void___thiscall_QFileInfo::constructor_class_QFileInfo_const__]
lea eax, [ebp - 0x18]
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x25
push eax
call esi
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 0x23
call sym.libnomacs.dll_public:_void___thiscall_nmc::DkImageLoader::saveFile_class_QFileInfo__class_QImage__class_QString__int__bool_
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call esi
jmp 0x1004be14
mov ecx, dword [ebp + 8]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QFileInfo::constructor_void_]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 0x1e
call ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call dword [sym.imp.QtGui4.dll_public_virtual:_void___thiscall_QImage::destructor_void_]
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20