Function at 0x10157d80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10204ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1044501c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x104450ec]
mov dword [esp + 0x28], eax
mov ebx, dword [ebp + 8]
mov dword [esp + 0x38], 0
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
push str.bwmode
push str.urn:schemas_microsoft_com:office:office
mov ecx, ebx
call eax
test eax, eax
je 0x10157e19
mov edi, eax
lea ebx, [esp + 0x28]
call fcn.101f1dc0
mov ecx, ebx
push ecx
push str.ST_BWMode
push 0xe000000
call fcn.10142ec0
push eax
call fcn.10142f50
cmp dword [esi + 0x18], 0
mov edi, eax
jne 0x10157e11
push 4
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esi + 0x18], eax
mov edx, dword [esi + 0x18]
mov ebx, dword [ebp + 8]
mov dword [edx], edi
mov eax, dword [0x104450ec]
mov dword [esp + 0x24], eax
mov byte [esp + 0x38], 1
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
push str.bwpure
push str.urn:schemas_microsoft_com:office:office
mov ecx, ebx
call eax
test eax, eax
je 0x10157e7e
mov edi, eax
lea ebx, [esp + 0x24]
call fcn.101f1dc0
mov ecx, ebx
push ecx
push str.ST_BWMode
push 0xe000000
call fcn.10142ec0
push eax
call fcn.10142f50
cmp dword [esi + 0x1c], 0
mov edi, eax
jne 0x10157e76
push 4
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esi + 0x1c], eax
mov edx, dword [esi + 0x1c]
mov ebx, dword [ebp + 8]
mov dword [edx], edi
mov eax, dword [0x104450ec]
mov dword [esp + 0x20], eax
mov byte [esp + 0x38], 2
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
push str.bwnormal
push str.urn:schemas_microsoft_com:office:office
mov ecx, ebx
call eax
test eax, eax
je 0x10157ee3
mov edi, eax
lea ebx, [esp + 0x20]
call fcn.101f1dc0
mov ecx, ebx
push ecx
push str.ST_BWMode
push 0xe000000
call fcn.10142ec0
push eax
call fcn.10142f50
cmp dword [esi + 0x20], 0
mov edi, eax
jne 0x10157edb
push 4
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esi + 0x20], eax
mov edx, dword [esi + 0x20]
mov ebx, dword [ebp + 8]
mov dword [edx], edi
mov eax, dword [0x104450ec]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x38], 3
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
push str.targetscreensize
push str.urn:schemas_microsoft_com:office:office
mov ecx, ebx
call eax
test eax, eax
je 0x10157f48
mov edi, eax
lea ebx, [esp + 0x1c]
call fcn.101f1dc0
mov ecx, ebx
push ecx
push str.ST_ScreenSize
push 0xe000000
call fcn.10142ec0
push eax
call fcn.10142f50
cmp dword [esi + 0x24], 0
mov edi, eax
jne 0x10157f40
push 4
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esi + 0x24], eax
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 8]
mov dword [edx], edi
mov eax, dword [0x104450ec]
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 4
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push 0x10237794
mov ecx, ebx
call eax
test eax, eax
je 0x10157f80
mov edi, eax
lea ebx, [esp + 0x18]
call fcn.101f1dc0
mov ecx, ebx
push ecx
mov ecx, esi
call sym.OOXMLDocument.dll_public:_void___thiscall_OOXML::VML::OFFICE::COLEObject::SetObjectID_class_CHncStringW_const__
mov ebx, dword [ebp + 8]
mov edx, dword [0x104450ec]
mov dword [esp + 0x14], edx
mov byte [esp + 0x38], 5
mov eax, dword [ebx]
mov edx, dword [eax + 8]
push str.filled
mov ecx, ebx
call edx
test eax, eax
je 0x10157fe1
mov edi, eax
lea ebx, [esp + 0x14]
call fcn.101f1dc0
mov eax, ebx
push eax
push str.ST_TrueFalse
push 0xd000000
call fcn.10142ec0
push eax
call fcn.10142f50
cmp dword [esi + 0x2c], 0
mov edi, eax
jne 0x10157fd9
push 4
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esi + 0x2c], eax
mov ecx, dword [esi + 0x2c]
mov ebx, dword [ebp + 8]
mov dword [ecx], edi
mov edx, dword [0x104450ec]
mov dword [esp + 0x10], edx
mov byte [esp + 0x38], 6
mov eax, dword [ebx]
mov edx, dword [eax + 8]
push str.fillcolor
mov ecx, ebx
call edx
test eax, eax
je 0x10158017
mov edi, eax
lea ebx, [esp + 0x10]
call fcn.101f1dc0
mov eax, ebx
push eax
mov ecx, esi
call sym.OOXMLDocument.dll_public:_void___thiscall_OOXML::VML::CTextbox::AttachMaintainData_class_CHncStringW_const__
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esi, 0xfffffff4
cmp dword [esi], 0xfffffffe
je 0x10158044
push esi
call edi
test eax, eax
jg 0x10158044
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x14]
add esi, 0xfffffff4
cmp dword [esi], 0xfffffffe
je 0x10158060
push esi
call edi
test eax, eax
jg 0x10158060
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x18]
add esi, 0xfffffff4
cmp dword [esi], 0xfffffffe
je 0x1015807c
push esi
call edi
test eax, eax
jg 0x1015807c
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x1c]
add esi, 0xfffffff4
cmp dword [esi], 0xfffffffe
je 0x10158098
push esi
call edi
test eax, eax
jg 0x10158098
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x20]
add esi, 0xfffffff4
cmp dword [esi], 0xfffffffe
je 0x101580b4
push esi
call edi
test eax, eax
jg 0x101580b4
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x24]
add esi, 0xfffffff4
cmp dword [esi], 0xfffffffe
je 0x101580d0
push esi
call edi
test eax, eax
jg 0x101580d0
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x28]
add esi, 0xfffffff4
cmp dword [esi], 0xfffffffe
je 0x101580ec
push esi
call edi
test eax, eax
jg 0x101580ec
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4