Function at 0x1000de90
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x10082991
push eax
mov eax, 0x688c
mov dword fs:[0], esp
call fcn.1002c9f0
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x26
mov esi, 0x1009a91c
lea edi, [esp + 0x270]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x30c]
rep stosd dword es:[edi], eax
mov al, byte [0x1009fd90]
mov ecx, 0x1963
mov byte [esp + 0x30c], al
xor eax, eax
lea edi, [esp + 0x30d]
mov dword [esp + 0x1c], 0x4c
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x50], 0x80000
stosw word es:[edi], ax
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
stosb byte es:[edi], al
lea eax, [esp + 0x270]
push ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 0x6590
mov dword [esp + 0x2c], eax
call sub.comdlg32.dll_GetOpenFileNameA
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x30c]
and edx, 0xffff
lea ecx, [esp + 0x68]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x68]
and edx, 0xffff
push eax
mov byte [esp + edx + 0x6c], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x67]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x1000df88
lea ecx, [esp + 0x68]
push 0x1009a918
push ecx
call ebx
mov edx, dword [esp + 0x54]
and edx, 0xffff
mov al, byte [esp + edx + 0x30c]
lea esi, [esp + edx + 0x30c]
test al, al
je 0x1000e0b9
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x16c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x68]
lea ecx, [esp + 0x16c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x16c]
push esi
push edx
call ebx
lea eax, [esp + 0x16c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_3
push 0x2e
lea ecx, [esp + 0x14]
mov dword [esp + 0x68a8], 0
call sub.MFC42.DLL_CString::ReverseFind
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [0x1009fec4]
mov ebx, 1
test eax, eax
mov byte [esp + 0x68a4], bl
jne 0x1000e026
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
push str.temp.png
lea ecx, [esp + 0x18]
mov byte [esp + 0x68a8], 2
call sub.MFC42.DLL_CString::operator
mov ecx, dword [ebp + 0x364]
lea eax, [esp + 0x16c]
push eax
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp + 0x364]
add ebp, 0x368
push ebp
mov edx, dword [ecx]
call dword [edx + 0x18]
mov eax, dword [0x1009fec4]
test eax, eax
jne 0x1000e079
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x68a4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x68a4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x68a4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, ebx
jmp 0x1000e0d0
mov eax, dword [0x1009fec4]
test eax, eax
jne 0x1000e0c7
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor eax, eax
mov ecx, dword [esp + 0x689c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6898
ret