Function at 0x100a5bf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1012d280
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x103b2018]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
xor ebx, ebx
cmp eax, ebx
jg 0x100a5dcd
cmp dword [edi + 0x26c], ebx
je 0x100a5c56
lea esi, [edi + 0x260]
lea esp, [esp]
call fcn.100a85a0
push eax
call sub.mfc90u.dll_delete
add esp, 4
cmp dword [edi + 0x26c], ebx
jne 0x100a5c40
cmp dword [edi + 0x2c0], ebx
je 0x100a5c80
lea esi, [edi + 0x2b4]
call fcn.100a85a0
cmp eax, ebx
je 0x100a5c78
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
push 1
call eax
cmp dword [edi + 0x2c0], ebx
jne 0x100a5c64
lea eax, [edi + 0x4e4]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 0x27c]
mov dword [esp + 0x38], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x100a5ca8
mov eax, dword [eax]
cmp eax, ebx
jne 0x100a5ca2
mov ecx, dword [esi + 0x14]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
call sub.mfc90u.dll_CPlex::FreeDataChain
mov dword [esi + 0x14], ebx
cmp dword [edi + 0x198], 0
mov dword [esp + 0x10], ebx
jle 0x100a5d73
test ebx, ebx
jl 0x100a5dc8
cmp ebx, dword [edi + 0x198]
jge 0x100a5dc8
mov eax, dword [edi + 0x194]
lea ecx, [ebx*8]
add eax, ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
lea ecx, [edi + 0x174]
lea eax, [esp + 0x2c]
call fcn.10014c80
test eax, eax
je 0x100a5d62
mov eax, dword [eax + 8]
push eax
mov ecx, edi
call sym.NirvanaBiz.dll_protected:_void___thiscall_CSWordModel::ClearWord_class_CNVUserWord__
cmp ebx, dword [edi + 0x198]
jge 0x100a5dc8
mov eax, dword [esi + 8]
mov ebx, dword [edi + 0x194]
add ebx, dword [esp + 0x14]
push 0
push eax
call fcn.10014ac0
mov ecx, dword [ebx]
mov dword [eax + 8], ecx
mov edx, dword [ebx + 4]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100a5d58
mov dword [ecx], eax
jmp 0x100a5d5b
mov dword [esi + 4], eax
mov ebx, dword [esp + 0x10]
mov dword [esi + 8], eax
inc ebx
cmp ebx, dword [edi + 0x198]
mov dword [esp + 0x10], ebx
jl 0x100a5cd0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x29c]
xor esi, esi
cmp eax, esi
je 0x100a5d98
mov eax, dword [eax]
cmp eax, esi
jne 0x100a5d92
mov ecx, dword [edi + 0x2ac]
mov dword [edi + 0x2a4], esi
mov dword [edi + 0x2a8], esi
mov dword [edi + 0x2a0], esi
mov dword [edi + 0x29c], esi
call sub.mfc90u.dll_CPlex::FreeDataChain
mov dword [edi + 0x2ac], esi
xor ebx, ebx
jmp 0x100a5efa
call sub.mfc90u.dll_AfxThrowInvalidArgException
lea eax, [edi + 0x4e4]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x38], 1
mov esi, dword [edi + 0x198]
dec esi
cmp esi, ebx
mov dword [esp + 0x10], esi
jl 0x100a5ee7
jmp 0x100a5e02
xor ebx, ebx
cmp esi, ebx
jl 0x100a5dc8
cmp esi, dword [edi + 0x198]
jge 0x100a5dc8
mov eax, dword [edi + 0x194]
lea ecx, [esi*8]
mov ebx, dword [eax + ecx]
add eax, ecx
mov eax, dword [eax + 4]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebp + 8]
push eax
mov dword [esp + 0x30], eax
push ebx
lea eax, [esp + 0x28]
call fcn.10014c80
test eax, eax
je 0x100a5ed8
mov edx, dword [eax + 8]
mov eax, dword [edi + 0x280]
mov dword [esp + 0x18], edx
test eax, eax
je 0x100a5e7c
mov ecx, eax
mov edx, dword [ecx + 8]
mov eax, dword [eax]
mov ecx, dword [ecx + 0xc]
cmp ebx, edx
jne 0x100a5e67
cmp dword [esp + 0x28], ecx
je 0x100a5e6d
test eax, eax
jne 0x100a5e53
jmp 0x100a5e7c
lea esi, [edi + 0x27c]
call fcn.100a8540
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push eax
mov ecx, edi
call sym.NirvanaBiz.dll_protected:_void___thiscall_CSWordModel::ClearWord_class_CNVUserWord__
cmp esi, dword [edi + 0x198]
jge 0x100a5dc8
mov ecx, dword [edi + 0x280]
mov ebx, dword [edi + 0x194]
lea eax, [esi*8]
lea esi, [edi + 0x27c]
push ecx
push 0
add ebx, eax
call fcn.10014ac0
mov edx, dword [ebx]
mov dword [eax + 8], edx
mov ecx, dword [ebx + 4]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100a5ece
mov dword [ecx + 4], eax
jmp 0x100a5ed1
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov esi, dword [esp + 0x10]
sub esi, 1
mov dword [esp + 0x10], esi
jns 0x100a5e00
xor ebx, ebx
mov dword [esp + 0x38], 0xffffffff
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [edi + 0x624]
mov eax, dword [edi + 4]
mov edx, dword [eax + 4]
push ebx
lea ecx, [edi + 4]
push ebx
push 0xbf4
call edx
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