Function at 0x100191b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
push ebp
mov ebp, ecx
cmp dword [ebp + 8], 8
jne 0x10019404
mov eax, dword [ebp + 0x28]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
je 0x100191d8
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 0x28], ebx
mov eax, dword [ebp + 0x2c]
cmp eax, ebx
je 0x100191eb
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 0x2c], ebx
mov eax, dword [ebp + 8]
mov ecx, ebp
push eax
mov dword [ebp + 0x24], eax
call fcn.1000f900
cmp eax, ebx
mov dword [ebp + 0x38], eax
je 0x10019228
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 0x38]
mov esi, dword [ebp + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [ebp + 0x2c], eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0x30], eax
imul eax, dword [ebp + 8]
cdq
and edx, 7
mov dword [ebp + 0x34], ecx
add eax, edx
sar eax, 3
add eax, 3
cdq
and edx, 3
add eax, edx
mov edi, eax
sar edi, 2
shl edi, 2
imul ecx, edi
push ecx
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_operatornew
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x1c]
add esp, 4
xor edx, edx
cmp eax, ebx
jle 0x10019297
xor ecx, ecx
mov esi, dword [ebp + 0x18]
xor eax, eax
cmp esi, ebx
jle 0x1001928d
mov ebx, dword [ebp + 0x28]
lea esi, [ecx + eax]
inc eax
mov byte [esi + ebx], 0xff
mov esi, dword [ebp + 0x18]
cmp eax, esi
jl 0x10019279
xor ebx, ebx
mov eax, dword [ebp + 0x1c]
inc edx
add ecx, edi
cmp edx, eax
jl 0x10019270
mov esi, dword [ebp + 0x18]
or eax, 0xffffffff
imul esi, dword [ebp + 0x1c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
lea eax, [esi*8]
mov ecx, 1
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], ecx
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, ebx
je 0x10019305
dec esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], esi
jmp 0x10019309
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x74]
mov ecx, dword [ebp]
mov eax, esi
xor ebx, ebx
imul eax, edi
mov edx, eax
add edx, ecx
mov ecx, dword [esp + 0x70]
add eax, ecx
mov bl, byte [edx + ecx]
mov edx, dword [ebp + 0x28]
mov dword [esp + 0x20], ebx
xor ebx, ebx
mov byte [eax + edx], 0
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], esi
mov ecx, dword [eax + ebx*8]
mov edx, dword [eax + ebx*8 + 4]
dec ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], 8
lea eax, [eax + ebx*8]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x18], eax
mov ecx, dword [eax - 4]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
add ecx, esi
mov esi, dword [eax]
add esi, edx
test ecx, ecx
jl 0x100193d1
mov edx, dword [ebp + 0x18]
dec edx
cmp ecx, edx
jg 0x100193d1
test esi, esi
jl 0x100193d1
mov eax, dword [ebp + 0x1c]
dec eax
cmp esi, eax
jg 0x100193d1
mov eax, esi
imul eax, edi
mov edi, dword [ebp + 0x28]
lea edx, [eax + ecx]
add edi, edx
cmp byte [edi], 0xff
jne 0x100193cd
mov edx, dword [ebp]
add eax, edx
xor edx, edx
mov dl, byte [eax + ecx]
mov eax, dword [esp + 0x20]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x78]
cmp eax, edx
jge 0x100193cd
mov eax, dword [esp + 0x70]
inc ebx
add eax, 8
mov byte [edi], 0
mov dword [esp + 0x70], eax
mov dword [eax], ecx
mov dword [eax + 4], esi
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add eax, 8
dec ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jne 0x10019361
mov eax, dword [esp + 0x10]
cmp ebx, 0xffffffff
jg 0x1001933a
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x5c
ret 0xc