Function at 0x10055790
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008c9ed
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x100a9040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0
call fcn.10055240
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
xor edx, edx
movq qword [ebp - 0x20], xmm0
xor esi, esi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x3c]
xor edi, edi
mov dword [ebp - 4], edx
mov ecx, dword [eax + 0x218]
mov eax, dword [eax + 0x21c]
sub eax, ecx
sar eax, 5
test eax, eax
je 0x1005587a
nop dword [eax + eax]
mov eax, dword [ecx + esi + 0x18]
add ecx, esi
or eax, dword [ecx + 0x1c]
je 0x1005585b
cmp dword [ecx], 0
je 0x1005585b
cmp edx, dword [ebp - 0x18]
je 0x1005584e
movups xmm0, xmmword [ecx]
movups xmmword [edx], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [edx + 0x10], xmm0
mov edx, dword [ebp - 0x1c]
add edx, 0x20
mov dword [ebp - 0x1c], edx
jmp 0x1005585b
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.10057240
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x3c]
inc edi
add esi, 0x20
mov ecx, dword [eax + 0x218]
mov eax, dword [eax + 0x21c]
sub eax, ecx
sar eax, 5
cmp edi, eax
jb 0x10055820
mov esi, dword [ebp - 0x20]
mov eax, edx
sub eax, esi
sar eax, 5
test eax, eax
jne 0x100558fd
mov edi, dword [ebp - 0x3c]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add edi, 0x1d0
mov dword [ebp - 0x50], 0xc
nop word [eax + eax]
mov esi, dword [edi]
test esi, esi
je 0x100558bd
push 4
push esi
call eax
test eax, eax
jne 0x100558b8
push eax
mov ecx, esi
call dword [0x1009f5f4]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add edi, 4
sub dword [ebp - 0x50], 1
jne 0x100558a0
mov esi, dword [ebp - 0x3c]
mov edi, dword [esi + 0x188]
mov esi, dword [esi + 0x204]
test esi, esi
je 0x100558eb
push 4
push esi
call eax
test eax, eax
jne 0x100558eb
push edi
mov ecx, esi
call dword [0x1009f65c]
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x18c], 1
jmp 0x100562ee
push 0x10048170
push eax
mov ecx, esi
call fcn.10056fb0
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 5
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100a1060]
divsd xmm0, qword [0x100a0718]
movsd qword [ebp - 0xa0], xmm0
fld qword [ebp - 0xa0]
fstp qword [esp]
call fcn.10086680
add esp, 8
fstp qword [ebp - 0xa0]
movsd xmm0, qword [ebp - 0xa0]
call fcn.10039880
mov edi, dword [ebp - 0x3c]
or edx, 0xffffffff
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cvttsd2si eax, xmm0
mov dword [edi + 0x18c], eax
mov eax, dword [ebx + 8]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [ebp - 0x9c], eax
lea esi, [eax - 0xc]
mov dword [ebp - 0xa4], esi
cmp esi, eax
jge 0x100562c9
inc edx
mov dword [ebp - 0x44], edx
cmp edx, 0xb
jg 0x100562c9
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 5
dec eax
cmp esi, eax
jle 0x100559c5
mov esi, dword [edi + edx*4 + 0x1d0]
test esi, esi
je 0x100562b0
push 4
push esi
call ecx
jmp 0x1005629a
mov eax, dword [ebp - 0x20]
mov ecx, esi
shl ecx, 5
mov dword [ebp - 0x4c], ecx
mov edx, dword [eax + ecx]
test edx, edx
je 0x10056283
mov ecx, dword [0x1009f5a8]
mov eax, 0x10624dd3
mul edx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call ecx
mov esi, eax
mov dword [ebp - 0x48], esi
test esi, esi
je 0x10056283
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov ecx, dword [ebp - 0x4c]
mov byte [ebp - 4], 1
cmp dword [esi], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ecx + eax]
mov dword [ebp - 0x40], ecx
je 0x10055aa8
test ecx, ecx
je 0x10055aa8
mov eax, 0x12e0be83
mov edi, ecx
mul ecx
sub edi, edx
shr edi, 1
add edi, edx
shr edi, 0x1d
cmp edi, 4
jae 0x10055aa8
cmp byte [esi + 4], 0x2d
jae 0x10055aa8
push 4
push 0x10b8050
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10055aa8
mov esi, dword [0x1009f5ac]
mov eax, 0x10624dd3
mul dword [ebp - 0x40]
shr edx, 6
sub edi, edx
imul eax, edi, 0x3e8
mov edi, dword [ebp - 0x48]
movzx ecx, byte [edi + 4]
add eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ecx*4 + 0x10b8050]
call esi
mov esi, eax
test esi, esi
je 0x10055aad
cmp dword [esi + 0x3c], 0
je 0x10055aad
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp - 0x4c]
push dword [eax + ecx]
push esi
jmp 0x10055aba
mov edi, dword [ebp - 0x48]
xor esi, esi
mov eax, dword [ebp - 0x20]
mov edx, edi
mov ecx, dword [ebp - 0x4c]
push dword [ecx + eax]
push 0
lea ecx, [ebp - 0x98]
call fcn.1000f980
add esp, 8
lea ecx, [ebp - 0x38]
push eax
call fcn.10009c00
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x10055b0b
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10055b01
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10056341
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [edx + eax + 0x18]
mov edx, dword [edx + eax + 0x1c]
mov eax, dword [ebp - 0x44]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x40]
mov eax, dword [eax + 0x20c]
mov dword [edi + eax + 0x20], ecx
mov ecx, edi
mov dword [ecx + eax + 0x24], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ecx + eax]
mov eax, dword [edx + 0x20c]
mov dword [edi + eax + 0x1c], ecx
mov ecx, edi
mov eax, dword [edx + 0x20c]
mov edi, dword [ebp - 0x48]
mov eax, dword [ecx + eax + 0x18]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x10055bff
add eax, 4
je 0x10055b93
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10055b8d
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ecx + 4]
call dword [0x1009f5bc]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x20c]
mov eax, dword [ecx + eax + 0x18]
mov dword [eax + 0x60], edi
mov eax, dword [edx + 0x20c]
mov eax, dword [ecx + eax + 0x18]
mov dword [eax + 0x64], esi
mov eax, dword [edx + 0x20c]
mov eax, dword [ecx + eax + 0x18]
mov dword [eax + 0x68], 0
test esi, esi
je 0x10055bce
movsx ecx, word [esi + 0x4e]
movsx eax, word [edi + 0x5e]
add ecx, eax
jmp 0x10055bd2
movsx ecx, word [edi + 0x5e]
mov eax, dword [edx + 0x20c]
mov edi, dword [ebp - 0x40]
mov eax, dword [edi + eax + 0x18]
mov dword [eax + 0x6c], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x4c]
mov ecx, dword [ecx + eax + 0x10]
mov eax, dword [edx + 0x20c]
mov eax, dword [edi + eax + 0x18]
mov edi, dword [ebp - 0x48]
mov dword [eax + 0x44], ecx
mov ecx, dword [ebp - 0x40]
mov eax, dword [edx + 0x20c]
mov eax, dword [ecx + eax + 0x14]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x10055c2a
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10055c2a
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x38]
push eax
call dword [0x1009f628]
push esi
mov edx, edi
lea ecx, [ebp - 0x98]
call fcn.1000fd40
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 2
mov ecx, dword [eax + 0x20c]
mov eax, dword [ebp - 0x40]
mov esi, dword [eax + ecx]
test esi, esi
je 0x10055c6a
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10055c6a
push edi
mov ecx, esi
call dword [0x1009f658]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x10055ca8
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10055c9e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10056341
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x98]
mov edi, dword [ebp - 0x4c]
mov edx, dword [edi + edx + 0x10]
call fcn.100101f0
mov edx, eax
mov byte [ebp - 4], 3
cmp dword [edx + 0x14], 0xf
jbe 0x10055ccb
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x70], 0
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0
movups xmmword [ebp - 0x80], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10055ce5
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x80]
call fcn.100048a0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 4], 4
mov eax, dword [eax + 0x20c]
mov esi, dword [ecx + eax + 4]
test esi, esi
je 0x10055d29
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10055d29
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call dword [0x1009f658]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x10055d61
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10055d57
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10056341
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
cmp ecx, 0xf
jbe 0x10055db1
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10055da7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10056341
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov edx, dword [ebp - 0x20]
mov eax, dword [edi + edx + 0xc]
cmp eax, 1
jne 0x10055ee1
mov edx, dword [edi + edx + 8]
push ecx
lea ecx, [ebp - 0x98]
call fcn.10013ab0
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0xf
jbe 0x10055de0
mov eax, dword [eax]
movaps xmm0, xmmword [0x100a1370]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x68], xmm0
mov word [ebp - 0x58], 0x3761
mov byte [ebp - 0x56], 0
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x11
jb 0x10055df8
sub esp, 0x18
mov byte [ebp - 0x56], 0
mov edx, esp
lea ecx, [ebp - 0x67]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10055e28
sub ecx, esi
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.100048a0
lea eax, [ebp - 0x80]
push eax
call fcn.10004440
add esp, 0x20
mov edi, eax
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 6
mov ecx, dword [eax + 0x20c]
mov eax, dword [ebp - 0x40]
mov esi, dword [eax + ecx + 8]
test esi, esi
je 0x10055e79
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10055e79
push edi
mov ecx, esi
call dword [0x1009f658]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x10055eb1
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10055ea7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10056341
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
cmp ecx, 0xf
jbe 0x100560b9
mov edx, dword [ebp - 0x98]
jmp 0x10056090
cmp eax, 2
jne 0x100560b9
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x80]
mov edx, dword [edi + edx + 8]
call fcn.10014030
or dword [ebp - 0x50], 1
mov eax, 3
mov ecx, dword [ebp - 0x70]
mov edi, ecx
mov dword [ebp - 0x48], eax
cmp edi, eax
jle 0x10055f79
nop
mov edx, edi
sub edx, eax
cmp ecx, edx
jb 0x10056346
mov esi, dword [ebp - 0x6c]
mov eax, esi
sub eax, ecx
cmp eax, 1
jb 0x10055f51
lea eax, [ecx + 1]
cmp esi, 0xf
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x80]
cmova eax, dword [ebp - 0x80]
sub ecx, edx
inc ecx
push ecx
lea esi, [eax + edx]
lea eax, [esi + 1]
push esi
push eax
call fcn.10069a90
add esp, 0xc
mov byte [esi], 0x2e
jmp 0x10055f66
push 0x2e
push 1
push edx
push dword [ebp - 0x9c]
lea ecx, [ebp - 0x80]
push 1
call fcn.1000ab60
mov eax, dword [ebp - 0x48]
inc edi
add eax, 4
mov dword [ebp - 0x48], eax
cmp edi, eax
jle 0x10055f79
mov ecx, dword [ebp - 0x70]
jmp 0x10055f10
cmp dword [ebp - 0x6c], 0xf
lea eax, [ebp - 0x80]
movaps xmm0, xmmword [0x100a0e90]
cmova eax, dword [ebp - 0x80]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x68], xmm0
mov word [ebp - 0x58], 0x7c2a
mov byte [ebp - 0x56], 0
nop dword [eax]
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x11
jb 0x10055fa0
sub esp, 0x18
mov byte [ebp - 0x56], 0
mov edx, esp
lea ecx, [ebp - 0x67]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10055fd0
sub ecx, esi
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.100048a0
lea eax, [ebp - 0x98]
push eax
call fcn.10004440
add esp, 0x20
mov edi, eax
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 8
mov ecx, dword [eax + 0x20c]
mov eax, dword [ebp - 0x40]
mov esi, dword [eax + ecx + 8]
test esi, esi
je 0x10056024
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10056024
push edi
mov ecx, esi
call dword [0x1009f658]
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x10056062
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10056058
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10056341
push ecx
push edx
call fcn.10067ef6
add esp, 8
and dword [ebp - 0x50], 0xfffffffe
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
cmp ecx, 0xf
jbe 0x100560b9
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100560af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10056341
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x80]
mov edx, dword [eax + edx + 4]
call fcn.10013ab0
add esp, 4
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0xf
jbe 0x100560db
mov eax, dword [eax]
movaps xmm0, xmmword [0x100a0bc0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x451316
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x12
jb 0x100560f0
sub esp, 0x18
mov byte [ebp - 0x55], 0
mov edx, esp
lea ecx, [ebp - 0x67]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10056120
sub ecx, esi
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.100048a0
lea eax, [ebp - 0x98]
push eax
call fcn.10004440
add esp, 0x20
mov edi, eax
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0xa
mov ecx, dword [eax + 0x20c]
mov eax, dword [ebp - 0x40]
mov esi, dword [eax + ecx + 0xc]
test esi, esi
je 0x10056174
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10056174
push edi
mov ecx, esi
call dword [0x1009f658]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x100561b2
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100561a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10056341
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
cmp ecx, 0xf
jbe 0x10056205
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100561fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10056341
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
cmp ecx, 0xf
jbe 0x1005624f
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10056245
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10056341
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov esi, dword [edi + edx*4 + 0x1d0]
test esi, esi
je 0x100562aa
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100562a7
push 1
jmp 0x1005629f
mov edx, dword [ebp - 0x44]
mov esi, dword [edi + edx*4 + 0x1d0]
test esi, esi
je 0x100562aa
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100562a7
push eax
mov ecx, esi
call dword [0x1009f5f4]
mov edx, dword [ebp - 0x44]
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov esi, dword [ebp - 0xa4]
inc esi
mov dword [ebp - 0xa4], esi
cmp esi, dword [ebp - 0x9c]
jl 0x10055991
mov eax, dword [ebp - 0x3c]
mov edi, dword [edi + 0x188]
mov esi, dword [eax + 0x204]
test esi, esi
je 0x100562ee
push 4
push esi
call ecx
test eax, eax
jne 0x100562ee
push edi
mov ecx, esi
call dword [0x1009f65c]
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x10056321
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xffffffe0
cmp ecx, 0x1000
jb 0x10056317
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10056341
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10067e95
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.1006d1c4
call fcn.10009c80
int3