Function at 0x10021610
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100b0e88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
mov ebx, dword [esp + 0xbc]
push ebp
push esi
push edi
mov di, bx
sub di, 2
mov esi, ecx
neg di
sbb edi, edi
xor eax, eax
and edi, 0x3e7
mov dword [esp + 0x24], eax
inc edi
mov dword [esp + 0x14], eax
mov eax, edi
mov dword [esp + 0x10], esi
shl eax, 4
push eax
mov dword [esp + 0x30], edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xc0]
mov ebp, eax
mov eax, dword [esp + 0xc4]
add esp, 4
mov dword [esp + 0x20], 0xffffffff
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0xc4]
mov dword [ebp + 0xc], eax
xor eax, eax
mov dword [ebp], edx
mov dword [ebp + 8], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xcc]
lea edx, [esp + 0x70]
mov ecx, esi
push edx
push eax
push ebx
call fcn.100254b0
test eax, eax
je 0x10021727
mov ecx, dword [esp + 0x70]
mov edx, dword [esi + 0x25d8]
push 0
push 0
mov eax, dword [ecx + 0x4c]
push eax
mov eax, dword [esi + 0x25d4]
push edx
push eax
call fcn.100991a0
mov ecx, eax
add esp, 0x14
test ecx, ecx
mov dword [esp + 0x20], ecx
jl 0x10021727
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*4]
lea eax, [ecx + edx*8]
mov ecx, dword [esi + 0x25d4]
lea eax, [ecx + eax*4 + 0x30d]
test eax, eax
je 0x1002171f
mov cl, byte [eax]
mov dword [esp + 0x30], 1
test cl, cl
jne 0x10021727
mov dword [esp + 0x30], 0
push 0
lea ecx, [esi + 0x18]
push ebx
call dword [sym.imp.OOLAPLib.dll_public:_class_CMDXAxis____thiscall_CMDXBuilder::GetAxisPtr_short_int__class_CMDXPackage__]
cmp bx, 2
mov dword [esp + 0x74], eax
jne 0x10021749
lea edx, [esi + 0x11d4]
mov dword [esp + 0x38], edx
jmp 0x10021753
lea eax, [esi + 0x11c8]
mov dword [esp + 0x38], eax
mov ebx, dword [esp + 0x24]
cmp ebx, dword [esp + 0x14]
jg 0x100221ef
mov ecx, dword [esp + 0xc0]
shl ebx, 4
cmp dword [ebx + ebp + 4], ecx
jg 0x100221ef
mov edx, dword [esp + 0xc4]
mov eax, dword [ebx + ebp]
cmp eax, edx
jg 0x100221ef
lea eax, [esp + 0x40]
push eax
call fcn.100946e0
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xd0]
add esp, 4
cmp ax, 2
mov word [esp + 0x40], ax
mov dword [esp + 0x44], ecx
jne 0x100217b5
xor eax, eax
jmp 0x100217bb
mov eax, dword [esi + 0x11e0]
mov esi, dword [ebx + ebp + 4]
imul esi, eax
add esi, dword [ebx + ebp]
js 0x100217ec
mov edx, dword [esp + 0x38]
mov ecx, dword [edx + 4]
cmp esi, ecx
jge 0x100217ec
mov eax, dword [edx]
test eax, eax
je 0x100217ec
test ecx, ecx
jle 0x100217ec
mov ecx, dword [edx + 8]
dec ecx
je 0x100217e5
dec ecx
jne 0x100217ec
shl esi, 5
add esi, eax
jmp 0x100217f1
mov esi, 0x100f02b0
mov eax, dword [esi + 0xc]
test eax, 0xffff
je 0x10021870
test eax, 0x10000
je 0x10021849
mov edx, dword [esp + 0x74]
test byte [edx + 0x3c], 1
jne 0x10021866
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x1424]
test edx, edx
jne 0x10021866
test eax, 0x80000
je 0x1002183a
mov eax, dword [ecx + 0x1430]
mov ecx, dword [esi + 0x10]
neg eax
sbb eax, eax
and eax, 0x200
or ecx, eax
mov dword [esi + 0x10], ecx
jmp 0x10021879
mov ecx, dword [esi + 0x10]
mov eax, 1
or ecx, eax
mov dword [esi + 0x10], ecx
jmp 0x10021879
mov eax, dword [esp + 0x74]
test byte [eax + 0x3c], 1
jne 0x10021866
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x1424]
test eax, eax
mov eax, 2
je 0x1002186b
mov eax, 0x10
or dword [esi + 0x10], eax
jmp 0x10021879
mov eax, dword [esi + 0x10]
or ah, 1
mov dword [esi + 0x10], eax
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
shr edx, 0xf
and edx, 0x20
or eax, edx
mov dword [esi + 0x10], eax
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0xc]
and eax, 0xffff
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x100218c1
mov edx, dword [esi]
lea eax, [esp + 0x58]
push eax
push 1
mov ecx, esi
call dword [edx + 0xc]
mov edx, dword [esi]
lea eax, [esp + 0x5c]
push eax
push 2
mov ecx, esi
call dword [edx + 0xc]
mov eax, dword [esp + 0xe0]
test eax, eax
je 0x10021926
test byte [esi + 0x10], 1
jne 0x10021926
mov ecx, esi
call fcn.10060ec0
test eax, eax
je 0x1002191f
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x1002191f
mov ecx, esi
call fcn.10060ec0
mov ecx, dword [esp + 0x20]
push eax
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*4]
lea eax, [ecx + edx*8]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x25d4]
lea eax, [edx + eax*4 + 0x30d]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x10021926
mov eax, 1
jmp 0x10021928
xor eax, eax
movsx ecx, word [esp + 0xc8]
sub ecx, 0
je 0x10021ba9
dec ecx
je 0x100219b7
dec ecx
jne 0x10021d93
mov ecx, dword [ebx + ebp]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov edx, dword [ebx + ebp + 4]
test eax, eax
mov dword [esp + 0x1c], edx
jne 0x10021d93
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10021d93
mov ecx, esi
call fcn.10060ec0
test eax, eax
je 0x10021d8b
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x10021d8b
mov ecx, esi
call fcn.10060ec0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push eax
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*8]
mov eax, dword [edx + 0x25d4]
lea ecx, [eax + ecx*4 + 0x30d]
push ecx
jmp 0x10021b93
mov edx, dword [ebx + ebp + 8]
push eax
mov eax, dword [ebx + ebp + 0xc]
push edx
lea ecx, [esp + 0x24]
push eax
mov eax, dword [ebx + ebp + 4]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [ebx + ebp]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.10022410
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + ebp + 8]
cmp edx, eax
mov al, byte [esp + 0x60]
jge 0x10021a59
test al, 2
je 0x10021a08
mov eax, dword [esp + 0x60]
and al, 0xfd
or al, 1
mov dword [esp + 0x60], eax
mov dword [esi + 0x10], eax
or dword [esi + 0xc], 0x10000
mov eax, dword [esp + 0x14]
inc eax
cmp eax, edi
mov dword [esp + 0x14], eax
jl 0x10021a31
add edi, 0x3e8
mov eax, edi
mov dword [esp + 0x2c], edi
shl eax, 4
push eax
push ebp
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
mov ebp, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + ebp + 4]
shl ecx, 4
lea eax, [ecx + ebp]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [eax], ecx
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
mov ecx, dword [ebx + ebp + 8]
mov dword [eax + 8], ecx
jmp 0x10021ab8
test al, 2
je 0x10021ab8
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0x38]
push edx
push ebp
push esi
push eax
push ecx
mov ecx, dword [esp + 0x24]
call fcn.10021570
test eax, eax
je 0x10021ab8
test byte [eax + 0x10], 1
je 0x10021ab8
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x60]
and ecx, 0xfffffffd
mov eax, dword [edx + 0x1430]
mov dword [esp + 0x60], ecx
test eax, eax
je 0x10021aa6
mov eax, ecx
or ah, 2
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
and eax, 0xfffeffff
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + ebp + 0xc]
cmp ecx, eax
jge 0x10021b11
mov eax, dword [esp + 0x14]
inc eax
cmp eax, edi
mov dword [esp + 0x14], eax
jl 0x10021aed
add edi, 0x3e8
mov edx, edi
mov dword [esp + 0x2c], edi
shl edx, 4
push edx
push ebp
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
mov ebp, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
shl eax, 4
add eax, ebp
inc ecx
mov dword [eax + 4], ecx
mov edx, dword [ebx + ebp]
mov dword [eax], edx
mov ecx, dword [ebx + ebp + 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [ebx + ebp + 8]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x10021d93
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10021d93
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + ebp + 4]
mov edx, dword [esp + 0xb8]
sub eax, ecx
mov ecx, dword [esp + 0xc0]
sub ecx, edx
cmp ecx, eax
jne 0x10021d93
mov ecx, esi
call fcn.10060ec0
test eax, eax
je 0x10021d8b
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x10021d8b
mov ecx, esi
call fcn.10060ec0
mov ecx, dword [esp + 0x20]
push eax
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*4]
lea eax, [ecx + edx*8]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x25d4]
lea eax, [edx + eax*4 + 0x30d]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x10021d8b
jmp 0x10021d81
mov ecx, dword [ebx + ebp + 8]
mov edx, dword [ebx + ebp + 0xc]
push eax
push ecx
lea eax, [esp + 0x24]
push edx
mov edx, dword [ebx + ebp + 4]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [ebx + ebp]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
call fcn.10022220
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + ebp + 8]
cmp ecx, eax
jge 0x10021c2a
mov eax, dword [esp + 0x14]
inc eax
cmp eax, edi
mov dword [esp + 0x14], eax
jl 0x10021c05
add edi, 0x3e8
mov edx, edi
mov dword [esp + 0x2c], edi
shl edx, 4
push edx
push ebp
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
mov ebp, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + ebp + 4]
shl eax, 4
add eax, ebp
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x18]
inc edx
mov dword [eax], edx
mov ecx, dword [ebx + ebp + 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [ebx + ebp + 8]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + ebp + 0xc]
cmp eax, ecx
mov al, byte [esp + 0x60]
jge 0x10021ca4
test al, 2
je 0x10021c54
mov eax, dword [esp + 0x60]
and al, 0xfd
or al, 1
mov dword [esp + 0x60], eax
mov dword [esi + 0x10], eax
or dword [esi + 0xc], 0x10000
mov eax, dword [esp + 0x14]
inc eax
cmp eax, edi
mov dword [esp + 0x14], eax
jl 0x10021c7d
add edi, 0x3e8
mov ecx, edi
mov dword [esp + 0x2c], edi
shl ecx, 4
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
mov ebp, eax
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
shl edx, 4
inc ecx
lea eax, [edx + ebp]
mov dword [eax + 4], ecx
mov edx, dword [ebx + ebp]
mov dword [eax], edx
mov ecx, dword [ebx + ebp + 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], edx
jmp 0x10021d03
test al, 2
je 0x10021d03
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0x38]
push eax
push ebp
push esi
push ecx
mov ecx, dword [esp + 0x20]
push edx
call fcn.10021570
test eax, eax
je 0x10021d03
test byte [eax + 0x10], 1
je 0x10021d03
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x60]
and edx, 0xfffffffd
mov ecx, dword [eax + 0x1430]
mov dword [esp + 0x60], edx
test ecx, ecx
je 0x10021cf1
mov eax, edx
or ah, 2
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x60]
and eax, 0xfffeffff
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x10021d93
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10021d93
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + ebp]
mov ecx, dword [esp + 0xbc]
sub edx, eax
mov eax, dword [esp + 0xc4]
sub eax, ecx
cmp eax, edx
jne 0x10021d93
mov ecx, esi
call fcn.10060ec0
test eax, eax
je 0x10021d8b
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x10021d8b
mov ecx, esi
call fcn.10060ec0
mov ecx, dword [esp + 0x20]
push eax
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*4]
lea eax, [ecx + edx*8]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x25d4]
lea eax, [edx + eax*4 + 0x30d]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x10021d8b
mov eax, dword [esp + 0x60]
or al, 0x80
mov dword [esp + 0x60], eax
mov dword [esp + 0x28], 1
mov ecx, dword [ebx + ebp + 4]
lea eax, [ebx + ebp + 4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x48], ecx
mov edx, dword [ebx + ebp]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x4c], edx
test eax, eax
mov dword [esp + 0x54], ecx
je 0x10021fb8
mov edx, dword [esp + 0xd8]
mov ecx, dword [esp + 0xd4]
mov eax, dword [edx]
mov edx, dword [ecx]
cmp edx, eax
jl 0x10021e04
mov edx, dword [esp + 0xd8]
mov edi, dword [esp + 0xd0]
add eax, 0x64
mov dword [edx], eax
mov ecx, dword [edi]
lea eax, [eax + eax*2]
shl eax, 4
push eax
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemRealloc]
mov dword [edi], eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10021e24
mov edx, dword [esi + 0x18]
push edx
push eax
lea eax, [esp + 0x74]
push eax
call fcn.10094690
mov ecx, dword [esi + 0x18]
add esp, 0xc
mov dword [esp + 0x68], ecx
mov eax, dword [esp + 0xc8]
test ax, ax
jne 0x10021e4a
mov edx, dword [esp + 0x10]
push 1
lea edi, [edx + 0x18]
mov ecx, edi
call dword [sym.imp.OOLAPLib.dll_public:_long_int___thiscall_CMDXBuilder::GetNbOrder_short_int_]
test eax, eax
jg 0x10021e6d
jmp 0x10021f8a
cmp ax, 1
jne 0x10021f8a
mov eax, dword [esp + 0x10]
push 0
lea edi, [eax + 0x18]
mov ecx, edi
call dword [sym.imp.OOLAPLib.dll_public:_long_int___thiscall_CMDXBuilder::GetNbOrder_short_int_]
test eax, eax
jle 0x10021f8a
lea ecx, [esp + 0x94]
call fcn.100ae9aa
mov eax, dword [esp + 0x44]
mov dword [esp + 0xb0], 0
test eax, eax
je 0x10021ed9
mov ecx, dword [esp + 0xc8]
cmp cx, 1
jne 0x1002203b
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x11e0]
dec ecx
lea edx, [esp + 0x94]
push edx
mov edx, dword [esp + 0x48]
dec edx
push 0
push edx
mov edx, dword [esp + 0xd4]
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.10020520
test eax, eax
je 0x10021f73
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x8c]
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x9c]
push eax
push ecx
lea ecx, [esp + 0x9c]
mov byte [esp + 0xb8], 1
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x8c]
mov byte [esp + 0xb0], 0
call fcn.100ae920
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x3c]
lea eax, [esp + 0x94]
push edx
push 0x2c
push eax
mov byte [esp + 0xbc], 2
call fcn.1009a380
mov ecx, dword [esp + 0x48]
add esp, 0xc
push ecx
mov ecx, edi
call dword [sym.imp.OOLAPLib.dll_public:_long_int___thiscall_CMDXBuilder::GetOrderType_char_const__]
mov ecx, dword [esp + 0x60]
mov byte [esp + 0xb0], 0
or ecx, eax
mov dword [esp + 0x60], ecx
mov eax, dword [esi + 0x10]
or eax, ecx
lea ecx, [esp + 0x3c]
mov dword [esi + 0x10], eax
call fcn.100ae920
lea ecx, [esp + 0x94]
mov dword [esp + 0xb0], 0xffffffff
call sub.MFC42.DLL_CStringArray::CStringArray
mov eax, dword [esp + 0xd4]
mov edx, dword [esp + 0xd0]
mov ecx, dword [eax]
mov esi, dword [edx]
lea edi, [ecx + ecx*2]
mov ecx, 0xc
shl edi, 4
add edi, esi
lea esi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
mov edi, dword [esp + 0x2c]
inc ecx
mov dword [eax], ecx
mov eax, dword [esp + 0xdc]
test eax, eax
je 0x100221db
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + ebp]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x80], edx
mov edx, dword [edi + 0x25a8]
mov esi, edx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x88], ecx
lea ebx, [esi + 1]
mov dword [esp + 0x84], eax
mov eax, dword [edi + 0x25a4]
mov dword [esp + 0x90], esi
test ebx, ebx
jne 0x10022058
test eax, eax
je 0x10022028
push eax
call fcn.100ae914
add esp, 4
mov dword [edi + 0x25a4], 0
xor eax, eax
mov dword [edi + 0x25ac], eax
mov dword [edi + 0x25a8], eax
jmp 0x100221a8
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x11e4]
dec eax
test cx, cx
jne 0x10021ea1
mov ecx, dword [esp + 0x4c]
jmp 0x10021eac
test eax, eax
jne 0x1002209f
mov edi, ebx
shl edi, 4
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov eax, dword [esp + 0x14]
mov ecx, edi
mov edi, edx
mov dword [eax + 0x25a4], edx
mov edx, ecx
xor eax, eax
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
mov dword [eax + 0x25ac], ebx
mov dword [eax + 0x25a8], ebx
jmp 0x100221a4
mov ecx, dword [edi + 0x25ac]
cmp ebx, ecx
jg 0x100220da
cmp ebx, edx
jle 0x100220cf
mov ecx, ebx
sub ecx, edx
shl edx, 4
add edx, eax
xor eax, eax
shl ecx, 4
mov edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x10]
mov dword [edi + 0x25a8], ebx
jmp 0x100221a8
mov eax, dword [edi + 0x25b0]
test eax, eax
jne 0x10022107
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x100220fb
mov eax, 4
jmp 0x10022107
cmp eax, 0x400
jle 0x10022107
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x34], eax
jl 0x10022115
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x34]
shl eax, 4
push eax
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x14]
mov edi, eax
mov dword [esp + 0x7c], eax
mov ecx, dword [edx + 0x25a8]
mov esi, dword [edx + 0x25a4]
shl ecx, 4
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov ecx, ebx
mov edx, dword [esi + 0x25a8]
sub ecx, edx
shl edx, 4
add edx, eax
xor eax, eax
shl ecx, 4
mov edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x25a4]
push eax
call fcn.100ae914
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x25a4], ecx
mov dword [esi + 0x25a8], ebx
mov dword [esi + 0x25ac], edx
mov esi, dword [esp + 0x98]
add esp, 8
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x25a4]
mov ecx, dword [esp + 0x80]
shl esi, 4
mov edx, dword [esp + 0x84]
add esi, eax
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x2c]
mov dword [esi], eax
mov eax, dword [esp + 0x88]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
inc eax
mov dword [esp + 0x24], eax
mov ebx, eax
jmp 0x10021757
push ebp
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [esp + 0xac]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 0x30