Function at 0x10022e1
Capabilities:
Access peb ldr_data

Disassembly:
test byte [edx + 8], 1
jne 0x100234d
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
imul eax, eax, 0xc
mov edx, dword [ebp + 0x10]
test byte [eax + edx + 8], 2
jne 0x1023206
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + ecx*4]
test byte [eax + 4], 2
jne 0x101568b
mov edi, dword [ebp + 0x1c]
mov esi, ecx
shl esi, 4
add esi, dword [ebx + 0x24]
push ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
call fcn.01002420
mov ecx, dword [ebp - 4]
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x10022d3
test byte [eax + 0x1c], 2
je 0x10022d3
cmp byte [eax + 0x19], 5
jae 0x102327e
mov dword [ebp - 0xc], 1
jmp 0x1002356
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
or dword [ebp - 4], 0xffffffff
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1002314
test byte [eax + 0x1c], 2
je 0x1002314
cmp byte [eax + 0x19], 5
jae 0x10231ef
mov eax, dword [ebp + 0x18]
or dword [eax], 0xffffffff
mov edi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 8]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
xor eax, eax
cmp dword [ebp + 0xc], esi
jbe 0x1002356
mov edi, dword [ebx + 0x20]
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
mov esi, dword [edi + ecx*4]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], esi
test esi, esi
ja 0x100226e
inc eax
add edx, 0xc
cmp eax, dword [ebp + 0xc]
jb 0x100233a
push ebx
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
xor ecx, ecx
cmp dword [ebp - 0xc], ecx
je 0x1023299
xor eax, eax
cmp dword [ebx + 0x1c], ecx
jbe 0x1002386
nop
mov edx, dword [ebx + 0x20]
mov esi, dword [ebx + 0x48]
mov edx, dword [edx + eax*4]
mov esi, dword [ebx + esi*4 + 0x28]
mov dword [esi + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x1c]
jb 0x1002370
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
lea eax, [ebx + 0x48]
mov edx, dword [eax]
mov edx, dword [ebx + edx*4 + 0x28]
mov dword [edx + edi*4], esi
inc dword [eax]
cmp dword [eax], 8
je 0x10024df
pop edi
pop esi
pop ebx
leave
ret 0x18
mov dword [eax], ecx
jmp 0x10023a3
mov esi, dword [ebx + 0x24]
mov eax, dword [ebp + 0x1c]
mov edx, ecx
shl edx, 4
add esi, edx
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x1023253
and dword [eax + 0xc], 0
mov eax, dword [ebx + 0x20]
lea eax, [eax + ecx*4]
dec dword [eax]
jmp 0x10022b7
push 0x1027a40
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
jmp 0x1002314
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1023235
test byte [eax + 0x1c], 2
je 0x1023235
cmp byte [eax + 0x19], 5
jb 0x1023235
push esi
push ecx
push 0x1027a40
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002a94
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + ecx*4]
mov edi, dword [ebp + 0x1c]
mov esi, ecx
shl esi, 4
add esi, dword [ebx + 0x24]
test byte [eax + 4], 2
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x10022d3
mov edi, dword [ebx + 0x24]
add edi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [eax + 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x1c]
jmp 0x10156a9
push dword [ebp - 8]
push ecx
push 0x1027a40
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002a94
jmp 0x10022d3
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x10023a3
test byte [eax + 0x1c], 2
je 0x10023a3
cmp byte [eax + 0x19], 5
jb 0x10023a3
push 0x1027a40
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
jmp 0x10023a3