Function at 0x10007e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10030d0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x628
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.10004b20
mov eax, dword [esp + 0x648]
mov dword [ebp + 0xf0], 0x1e
mov byte [esp + 0x238], 0
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0xd0]
add ecx, edx
mov edx, dword [esp + 0x64c]
mov eax, 0x3e8
mov dword [esp + 0x34], ecx
mov ebx, dword [edx]
cdq
mov ecx, dword [ebx - 8]
idiv ecx
test eax, eax
jle 0x10007ee6
mov dword [esp + 0x10], eax
mov edi, 0x10041634
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x238]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x238]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, edx
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], eax
jne 0x10007e7e
mov edi, 0x10051980
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x238]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 8
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0xf8], eax
mov dword [ebp + 0xfc], eax
call sub.MFC42.DLL_operatornew
xor edi, edi
add esp, 4
cmp eax, edi
je 0x10007f40
mov dword [eax + 4], edi
mov dword [eax], 0x10033460
mov esi, eax
jmp 0x10007f42
xor esi, esi
mov eax, dword [ebp + 0x68]
mov ecx, esi
push eax
lea eax, [ebp + 0xf0]
push eax
call sub.MFC42.DLL_CFont::CreatePointFontIndirect
mov ecx, dword [ebp + 0x68]
push esi
mov edx, dword [ecx]
call dword [edx + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
lea ebx, [esp + 0x38]
sub eax, ecx
lea ecx, [esp + 0x238]
add eax, 0xffffffee
lea esi, [esp + 0x238]
mov dword [esp + 0x18], eax
sub ebx, ecx
mov dl, byte [esi]
mov eax, dword [ebp + 0x68]
lea ecx, [esp + 0x20]
mov byte [ebx + esi], dl
mov eax, dword [eax + 4]
inc edi
push ecx
lea edx, [esp + 0x3c]
push edi
push edx
push eax
inc esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
cmp eax, ecx
jle 0x10007f86
lea edx, [esp + 0x38]
lea ecx, [esp + 0x1c]
push edx
mov byte [esp + edi + 0x3c], 0
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebp + 0x68]
mov eax, dword [esp + 0x1c]
xor edi, edi
mov edx, dword [eax - 8]
mov ebx, dword [ecx]
push edx
mov edx, ebx
mov ebx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ebx
push eax
mov dword [esp + 0x650], edi
call dword [edx + 0x64]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x640], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0x68]
mov edx, dword [esp + 0x10]
push edx
mov eax, dword [ecx]
call dword [eax + 0x30]
cmp eax, edi
je 0x10008018
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 4]
mov eax, 0xa8c
push 8
mov dword [ebp + 0xf8], eax
mov dword [ebp + 0xfc], eax
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, edi
je 0x10008042
mov dword [eax + 4], edi
mov dword [eax], 0x10033460
mov edi, eax
mov eax, dword [ebp + 0x68]
mov ecx, edi
push eax
lea eax, [ebp + 0xf0]
push eax
call sub.MFC42.DLL_CFont::CreatePointFontIndirect
mov ecx, dword [ebp + 0x68]
push edi
mov edx, dword [ecx]
call dword [edx + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
sub eax, ebx
xor edi, edi
add eax, 0xffffffee
mov dword [esp + 0x14], eax
mov cl, byte [esi]
mov eax, dword [ebp + 0x68]
mov byte [esp + edi + 0x38], cl
lea edx, [esp + 0x20]
inc edi
push edx
mov edx, dword [eax + 4]
lea ecx, [esp + 0x3c]
push edi
push ecx
push edx
inc esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jle 0x10008070
lea ecx, [esp + 0x38]
mov byte [esp + edi + 0x38], 0
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x68]
mov dword [esp + 0x640], 1
mov edx, dword [eax - 8]
mov edi, dword [ecx]
push edx
mov edx, dword [esp + 0x34]
push eax
push ebx
push edx
call dword [edi + 0x64]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x640], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0x68]
mov edx, dword [esp + 0x10]
push edx
mov eax, dword [ecx]
call dword [eax + 0x30]
xor edi, edi
cmp eax, edi
je 0x10008101
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 4]
mov eax, 0x708
push 8
mov dword [ebp + 0xf8], eax
mov dword [ebp + 0xfc], eax
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, edi
je 0x1000812b
mov dword [eax + 4], edi
mov dword [eax], 0x10033460
mov edi, eax
mov eax, dword [ebp + 0x68]
mov ecx, edi
push eax
lea eax, [ebp + 0xf0]
push eax
call sub.MFC42.DLL_CFont::CreatePointFontIndirect
mov ecx, dword [ebp + 0x68]
push edi
mov edx, dword [ecx]
call dword [edx + 0x30]
mov ebx, eax
xor edi, edi
mov al, byte [esi]
lea ecx, [esp + 0x20]
mov byte [esp + edi + 0x38], al
mov eax, dword [ebp + 0x68]
inc edi
push ecx
mov eax, dword [eax + 4]
lea edx, [esp + 0x3c]
push edi
push edx
push eax
inc esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
cmp eax, ecx
jle 0x1000814a
lea edx, [esp + 0x38]
lea ecx, [esp + 0x18]
push edx
mov byte [esp + edi + 0x3c], 0
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x68]
mov dword [esp + 0x640], 2
mov edx, dword [eax - 8]
mov edi, dword [ecx]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x3c]
push eax
push edx
call dword [edi + 0x64]
lea ecx, [esp + 0x18]
mov dword [esp + 0x640], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0x68]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x30]
xor edi, edi
cmp eax, edi
je 0x100081db
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 4]
mov eax, 0x384
push 8
mov dword [ebp + 0xf8], eax
mov dword [ebp + 0xfc], eax
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, edi
je 0x10008205
mov dword [eax + 4], edi
mov dword [eax], 0x10033460
mov edi, eax
mov eax, dword [ebp + 0x68]
mov ecx, edi
push eax
lea eax, [ebp + 0xf0]
push eax
call sub.MFC42.DLL_CFont::CreatePointFontIndirect
mov ecx, dword [ebp + 0x68]
push edi
mov edx, dword [ecx]
call dword [edx + 0x30]
mov ebx, eax
xor edi, edi
mov al, byte [esi]
lea ecx, [esp + 0x20]
mov byte [esp + edi + 0x38], al
mov eax, dword [ebp + 0x68]
inc edi
push ecx
mov eax, dword [eax + 4]
lea edx, [esp + 0x3c]
push edi
push edx
push eax
inc esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
cmp eax, ecx
jle 0x10008224
lea edx, [esp + 0x38]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + edi + 0x3c], 0
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x68]
mov dword [esp + 0x640], 3
mov edx, dword [eax - 8]
mov esi, dword [ecx]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x3c]
push eax
push edx
call dword [esi + 0x64]
lea ecx, [esp + 0x14]
mov dword [esp + 0x640], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0x68]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x30]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x100082b7
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 4]
mov ecx, dword [esp + 0x628]
mov dword fs:[0], ecx
add esp, 0x634
ret 8