Function at 0x1000df40
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x100edc1e
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1011f07c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
push 0x20
call sub.mfc90u.dll_new
add esp, 4
test eax, eax
je 0x1000df81
mov esi, eax
call fcn.1000dce0
mov esi, eax
jmp 0x1000df83
xor esi, esi
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x14], edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esi + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
cmp edi, 0xa00000
jae 0x1000e01e
mov edx, dword [0x101226fc]
add edx, edi
cmp edx, 0x40000000
jae 0x1000e01e
push edi
push 0x101226fc
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0x28
call sub.mfc90u.dll_new
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], 0
test eax, eax
je 0x1000e004
push 0x400
mov ecx, eax
call sub.mfc90u.dll_CMemFile::CMemFile_1
mov dword [esi + 0xc], eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
xor eax, eax
mov dword [esi + 0xc], eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
lea ecx, [esp + 0x20]
call sub.mfc90u.dll_CFile::CFile
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 1
call dword [0x100f3984]
mov ecx, str._temp__
lea ebx, [esp + 0x18]
mov byte [esp + 0x38], 2
call fcn.10001650
mov bl, 3
mov byte [esp + 0x38], bl
mov edi, dword [esp + 0x18]
push 0x104
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBufferSetLength]
push eax
push 0
push str.MHDC
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
push 0x10
call sub.mfc90u.dll_new
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x38], 4
test eax, eax
je 0x1000e0b0
mov ecx, eax
call sub.mfc90u.dll_CFile::CFile
mov edi, eax
jmp 0x1000e0b2
xor edi, edi
mov byte [esp + 0x38], bl
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x28]
push 0
push 0x1002
push eax
mov ecx, edi
call edx
test eax, eax
je 0x1000e10c
lea ecx, [esp + 0x18]
mov dword [esi + 0xc], edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.100e6fb6
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
mov eax, dword [edi]
mov edx, dword [eax + 4]
push 1
mov ecx, edi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.100e6fb6
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret