Function at 0x10057470
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 0x10090ac9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x58], 0
call fcn.10056f20
xor eax, eax
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x44], eax
movq qword [ebp - 0x20], xmm0
xor edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edx
xor edi, edi
mov eax, dword [esi + 0x21c]
mov ecx, dword [esi + 0x218]
sub eax, ecx
sar eax, 5
test eax, eax
je 0x1005756e
xor esi, esi
mov eax, dword [ecx + esi + 0x18]
add ecx, esi
or eax, dword [ecx + 0x1c]
je 0x10057547
cmp dword [ecx], 0
je 0x10057547
cmp edx, dword [ebp - 0xa0]
je 0x10057531
movups xmm0, xmmword [ecx]
movups xmmword [edx], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [edx + 0x10], xmm0
add edx, 0x20
mov dword [ebp - 0x1c], edx
jmp 0x10057547
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.10059040
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xa0], eax
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 0x10057503
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x44], edi
jmp 0x10057570
xor edi, edi
mov eax, edx
sub eax, edi
sar eax, 5
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x100575f0
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
lea edi, [esi + 0x1d0]
mov dword [ebp - 0x58], 0xc
mov esi, dword [edi]
test esi, esi
je 0x100575b0
push 4
push esi
call eax
test eax, eax
jne 0x100575ab
push eax
mov ecx, esi
call dword [0x100a313c]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add edi, 4
sub dword [ebp - 0x58], 1
jne 0x10057593
mov esi, dword [ebp - 0x3c]
mov edi, dword [esi + 0x188]
mov esi, dword [esi + 0x204]
test esi, esi
je 0x100575de
push 4
push esi
call eax
test eax, eax
jne 0x100575de
push edi
mov ecx, esi
call dword [0x100a31a4]
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x18c], 1
jmp 0x10058039
push 0x10049f00
push eax
mov ecx, edi
call fcn.10058da0
mov eax, dword [ebp - 0xa4]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100a5050]
divsd xmm0, qword [0x100a46d8]
movsd qword [ebp - 0xb0], xmm0
fld qword [ebp - 0xb0]
fstp qword [esp]
call fcn.1008a750
add esp, 8
fstp qword [ebp - 0xb0]
movsd xmm0, qword [ebp - 0xb0]
call fcn.1003af30
cvttsd2si eax, xmm0
or ecx, 0xffffffff
mov dword [esi + 0x18c], eax
mov eax, dword [ebx + 8]
lea edx, [eax + eax*2]
shl edx, 2
mov dword [ebp - 0xac], edx
lea eax, [edx - 0xc]
cmp eax, edx
mov edx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [ebp - 0x54], eax
jge 0x10058017
inc ecx
mov dword [ebp - 0x40], ecx
cmp ecx, 0xb
jg 0x10058017
mov eax, dword [ebp - 0xa4]
dec eax
cmp dword [ebp - 0x54], eax
jle 0x100576c3
mov esi, dword [esi + ecx*4 + 0x1d0]
test esi, esi
je 0x100576b4
push 4
push esi
call edx
test eax, eax
jne 0x100576b1
push eax
mov ecx, esi
call dword [0x100a313c]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x3c]
inc eax
cmp eax, dword [ebp - 0xac]
jmp 0x1005766c
mov esi, dword [ebp - 0x54]
shl esi, 5
mov dword [ebp - 0x50], esi
mov ecx, dword [esi + edi]
test ecx, ecx
je 0x10057ff0
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x100a30f0]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x10057fea
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov byte [ebp - 4], 1
cmp dword [eax], 0
mov edi, dword [esi + edi]
je 0x10057796
test edi, edi
je 0x10057796
mov eax, 0x12e0be83
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 0x1d
cmp esi, 4
jae 0x10057796
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 4], 0x2d
jae 0x10057796
push 4
push 0x10b8050
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10057796
mov eax, 0x10624dd3
mul edi
shr edx, 6
sub esi, edx
imul eax, esi, 0x3e8
add eax, edi
push eax
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax + 4]
mov ecx, dword [ecx*4 + 0x10b8050]
call dword [0x100a30f4]
mov esi, eax
test esi, esi
je 0x10057798
cmp dword [esi + 0x3c], 0
je 0x10057798
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x44]
push dword [edx + eax]
xor edx, edx
push esi
jmp 0x100577a6
xor esi, esi
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x44]
push dword [edx + eax]
mov edx, dword [ebp - 0x4c]
push 0
lea ecx, [ebp - 0x9c]
call fcn.10010260
add esp, 8
lea ecx, [ebp - 0x38]
push eax
call fcn.1000a520
mov ecx, dword [ebp - 0x88]
cmp ecx, 0xf
jbe 0x100577f7
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100577ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058094
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
lea edi, [eax + eax*4]
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + edx + 0x18]
mov edx, dword [eax + edx + 0x1c]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20c]
mov dword [eax + edi*8 + 0x20], ecx
mov dword [eax + edi*8 + 0x24], edx
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x50]
mov ecx, dword [eax + 0x20c]
mov eax, dword [ebp - 0x44]
mov eax, dword [edx + eax]
mov dword [ecx + edi*8 + 0x1c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20c]
mov eax, dword [eax + edi*8 + 0x18]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x100578e7
add eax, 4
je 0x1005786f
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005786c
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ecx + 4]
call dword [0x100a3104]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [eax + 0x20c]
mov eax, dword [eax + edi*8 + 0x18]
mov dword [eax + 0x60], ecx
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20c]
mov eax, dword [eax + edi*8 + 0x18]
mov dword [eax + 0x64], esi
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20c]
mov eax, dword [eax + edi*8 + 0x18]
mov dword [eax + 0x68], 0
test esi, esi
je 0x100578bc
movsx eax, word [esi + 0x4e]
mov dword [ebp - 0x48], eax
movsx eax, word [ecx + 0x5e]
mov ecx, dword [ebp - 0x48]
add ecx, eax
jmp 0x100578c0
movsx ecx, word [ecx + 0x5e]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20c]
mov eax, dword [eax + edi*8 + 0x18]
mov dword [eax + 0x6c], ecx
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20c]
mov ecx, dword [eax + edi*8 + 0x18]
mov eax, dword [ebp - 0x44]
mov eax, dword [edx + eax + 0x10]
mov dword [ecx + 0x44], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20c]
mov eax, dword [eax + edi*8 + 0x14]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x10057915
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10057915
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x38]
push eax
call dword [0x100a3170]
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x9c]
push esi
call fcn.10010620
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 2
mov ecx, dword [eax + 0x20c]
mov esi, dword [ecx + edi*8]
test esi, esi
je 0x10057956
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10057956
push dword [ebp - 0x48]
mov ecx, esi
call dword [0x100a31a0]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x88]
cmp ecx, 0xf
jbe 0x10057994
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005798a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058094
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x9c]
mov edi, dword [ebp - 0x44]
mov edx, dword [edx + edi + 0x10]
call fcn.10010ad0
mov edx, eax
mov byte [ebp - 4], 3
cmp dword [edx + 0x14], 0xf
jbe 0x100579b7
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x74], 0
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0
movups xmmword [ebp - 0x84], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100579d4
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x84]
call fcn.100051e0
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 4
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20c]
mov esi, dword [eax + ecx*8 + 4]
test esi, esi
je 0x10057a21
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10057a21
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
call dword [0x100a31a0]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x70]
cmp ecx, 0xf
jbe 0x10057a5c
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10057a52
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058094
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0xf
mov byte [ebp - 0x84], 0
cmp ecx, 0xf
jbe 0x10057aaf
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10057aa5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058094
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov edx, dword [ebp - 0x54]
mov eax, edx
shl eax, 5
shl edx, 5
mov eax, dword [eax + edi + 0xc]
cmp eax, 1
jne 0x10057bf5
mov edx, dword [edi + edx + 8]
push ecx
lea ecx, [ebp - 0x9c]
call fcn.10014340
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0xf
jbe 0x10057ae6
mov eax, dword [eax]
movaps xmm0, xmmword [0x100a4f70]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x6c], xmm0
mov word [ebp - 0x5c], 0x6e38
mov byte [ebp - 0x5a], 0
nop
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0x11
jb 0x10057b00
sub esp, 0x18
mov byte [ebp - 0x5a], 0
mov edx, esp
lea ecx, [ebp - 0x6b]
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 0x10057b30
sub ecx, esi
lea eax, [ebp - 0x6b]
push ecx
push eax
mov ecx, edx
call fcn.100051e0
lea eax, [ebp - 0x84]
push eax
call fcn.10004d80
add esp, 0x20
mov edi, eax
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 6
lea edx, [eax + eax*4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x20c]
mov esi, dword [ecx + edx*8 + 8]
test esi, esi
je 0x10057b87
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10057b87
push edi
mov ecx, esi
call dword [0x100a31a0]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x70]
cmp ecx, 0xf
jbe 0x10057bc2
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10057bb8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058094
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0xf
mov byte [ebp - 0x84], 0
cmp ecx, 0xf
jbe 0x10057df1
mov edx, dword [ebp - 0x9c]
jmp 0x10057dc8
cmp eax, 2
jne 0x10057df1
mov eax, dword [ebp - 0x54]
shl eax, 5
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x84]
mov edx, dword [eax + edi + 8]
call fcn.100148b0
or dword [ebp - 0x58], 1
mov eax, 3
mov ecx, dword [ebp - 0x74]
mov edi, ecx
mov dword [ebp - 0x4c], eax
cmp edi, eax
jle 0x10057ca9
nop dword [eax]
mov edx, edi
sub edx, eax
cmp ecx, edx
jb 0x1005808f
mov esi, dword [ebp - 0x70]
mov eax, esi
sub eax, ecx
cmp eax, 1
jb 0x10057c77
lea eax, [ecx + 1]
cmp esi, 0xf
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x84]
cmova eax, dword [ebp - 0x84]
sub ecx, edx
inc ecx
push ecx
lea esi, [eax + edx]
lea eax, [esi + 1]
push esi
push eax
call fcn.1006b7f0
add esp, 0xc
mov byte [esi], 0x2e
jmp 0x10057c96
push 0x2e
push 1
push edx
mov byte [ebp - 0xb4], 0
lea ecx, [ebp - 0x84]
push dword [ebp - 0xb4]
push 1
call fcn.1000b480
mov eax, dword [ebp - 0x4c]
inc edi
add eax, 4
mov dword [ebp - 0x4c], eax
cmp edi, eax
jle 0x10057ca9
mov ecx, dword [ebp - 0x74]
jmp 0x10057c30
cmp dword [ebp - 0x70], 0xf
lea eax, [ebp - 0x84]
movaps xmm0, xmmword [0x100a5200]
cmova eax, dword [ebp - 0x84]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x6c], xmm0
mov word [ebp - 0x5c], 0x184e
mov byte [ebp - 0x5a], 0
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0x11
jb 0x10057cd2
sub esp, 0x18
mov byte [ebp - 0x5a], 0
mov edx, esp
lea ecx, [ebp - 0x6b]
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 0x10057d02
sub ecx, esi
lea eax, [ebp - 0x6b]
push ecx
push eax
mov ecx, edx
call fcn.100051e0
lea eax, [ebp - 0x9c]
push eax
call fcn.10004d80
add esp, 0x20
mov edi, eax
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 8
lea edx, [eax + eax*4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x20c]
mov esi, dword [ecx + edx*8 + 8]
test esi, esi
je 0x10057d59
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10057d59
push edi
mov ecx, esi
call dword [0x100a31a0]
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x88]
cmp ecx, 0xf
jbe 0x10057d97
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10057d8d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058094
push ecx
push edx
call fcn.10069bf1
add esp, 8
and dword [ebp - 0x58], 0xfffffffe
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
cmp ecx, 0xf
jbe 0x10057df1
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10057de7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058094
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x44]
shl edx, 5
push ecx
lea ecx, [ebp - 0x84]
mov edx, dword [edx + eax + 4]
call fcn.10014340
add esp, 4
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0xf
jbe 0x10057e19
mov eax, dword [eax]
movaps xmm0, xmmword [0x100a4fc0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x5c], 0x742227
nop
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0x12
jb 0x10057e30
sub esp, 0x18
mov byte [ebp - 0x59], 0
mov edx, esp
lea ecx, [ebp - 0x6b]
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 0x10057e60
sub ecx, esi
lea eax, [ebp - 0x6b]
push ecx
push eax
mov ecx, edx
call fcn.100051e0
lea eax, [ebp - 0x9c]
push eax
call fcn.10004d80
add esp, 0x20
mov edi, eax
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 0xa
lea edx, [eax + eax*4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x20c]
mov esi, dword [ecx + edx*8 + 0xc]
test esi, esi
je 0x10057eb7
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10057eb7
push edi
mov ecx, esi
call dword [0x100a31a0]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x88]
cmp ecx, 0xf
jbe 0x10057ef5
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10057eeb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058094
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
cmp ecx, 0xf
jbe 0x10057f4b
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10057f41
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058094
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0xf
mov byte [ebp - 0x84], 0
cmp ecx, 0xf
jbe 0x10057f98
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10057f8e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058094
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov esi, dword [eax + ecx*4 + 0x1d0]
test esi, esi
je 0x10058002
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10057fd2
push 1
mov ecx, esi
call dword [0x100a313c]
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x44]
inc eax
mov ecx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0xac]
jmp 0x1005766c
mov edx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov esi, dword [eax + ecx*4 + 0x1d0]
jmp 0x1005769b
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x44]
inc eax
mov esi, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0xac]
jmp 0x1005766c
mov edi, dword [esi + 0x188]
mov esi, dword [esi + 0x204]
test esi, esi
je 0x10058039
push 4
push esi
call edx
test eax, eax
jne 0x10058039
push edi
mov ecx, esi
call dword [0x100a31a4]
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1005806f
mov edx, dword [ebp - 0xa0]
mov eax, ecx
sub edx, ecx
and edx, 0xffffffe0
cmp edx, 0x1000
jb 0x10058065
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058094
push edx
push ecx
call fcn.10069bf1
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.10069b90
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.1000a5a0
call fcn.1006f2c1
int3