Function at 0x10055e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067d9b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x10078014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 4], 0
call fcn.10055a00
xor ecx, ecx
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
mov dword [ebp - 0x40], ecx
movq qword [ebp - 0x1c], xmm0
xor ebx, ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
xor edx, edx
mov eax, dword [edi + 0xec]
sub eax, dword [edi + 0xe8]
sar eax, 6
mov dword [ebp - 0x3c], edx
test eax, eax
je 0x100562ab
xor esi, esi
mov al, byte [ebp + 0xc]
test al, al
je 0x10055eed
cmp dword [ebp + 0x20], 0
ja 0x10055ee5
mov ecx, dword [edi + 0xe8]
movzx eax, al
cmp dword [esi + ecx + 0x30], eax
jne 0x1005628a
jmp 0x100561d5
test al, al
jne 0x10056052
cmp dword [ebp + 0x20], 0
jbe 0x100561f7
mov eax, dword [edi + 0xe8]
mov ecx, dword [eax + esi + 0x1c]
test ecx, ecx
jne 0x10055f09
xor eax, eax
jmp 0x10055f2f
mov eax, 0x10624dd3
mul ecx
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.10015280
mov ecx, eax
call dword [0x1006eb98]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [edi + 0xe8]
mov dword [ebp - 0x48], eax
cmp dword [ecx + esi + 0x1c], 0
jbe 0x10055fec
cmp dword [esi + ecx + 0x1c], 0x5f5e100
jae 0x10055fec
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x54], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x10055f7f
mov eax, dword [ecx]
jmp 0x10055f81
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 0x10]
push 0
push eax
call fcn.10002480
sub esp, 0x18
mov byte [ebp - 4], 2
mov eax, dword [edi + 0xe8]
mov ecx, esp
add eax, esi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x10055fd8
mov edx, dword [ecx]
push 0xffffffffffffffff
push 0
push eax
mov byte [edx], 0
call fcn.10002480
jmp 0x100561c1
push 0xffffffffffffffff
mov edx, ecx
push 0
push eax
mov byte [edx], 0
call fcn.10002480
jmp 0x100561c1
test eax, eax
je 0x1005628a
mov edx, dword [edi + 0xe8]
mov cl, byte [eax + 4]
mov edx, dword [edx + esi + 0x1c]
call fcn.10007cb0
sub esp, 0x18
mov dword [ebp - 0x38], eax
mov ecx, esp
mov dword [ebp - 0x54], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x10056037
mov eax, dword [ecx]
jmp 0x10056039
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 0x10]
push 0
push eax
call fcn.10002480
mov byte [ebp - 4], 3
jmp 0x100561ae
cmp dword [ebp + 0x20], 0
jbe 0x100561f7
mov ecx, dword [edi + 0xe8]
movzx eax, al
cmp dword [ecx + esi + 0x30], eax
jne 0x1005628a
mov eax, ecx
mov ecx, dword [eax + esi + 0x1c]
test ecx, ecx
jne 0x1005607d
xor eax, eax
jmp 0x100560a3
mov eax, 0x10624dd3
mul ecx
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.10015280
mov ecx, eax
call dword [0x1006eb98]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [edi + 0xe8]
mov dword [ebp - 0x48], eax
cmp dword [esi + ecx + 0x1c], 0
jbe 0x1005614d
cmp dword [ecx + esi + 0x1c], 0x5f5e100
jae 0x1005614d
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x54], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x100560f3
mov eax, dword [ecx]
jmp 0x100560f5
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 0x10]
push 0
push eax
call fcn.10002480
sub esp, 0x18
mov byte [ebp - 4], 4
mov eax, dword [edi + 0xe8]
mov ecx, esp
add eax, esi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x10055fd8
mov edx, dword [ecx]
push 0xffffffffffffffff
push 0
push eax
mov byte [edx], 0
call fcn.10002480
jmp 0x100561c1
test eax, eax
je 0x1005628a
mov edx, dword [edi + 0xe8]
mov cl, byte [eax + 4]
mov edx, dword [edx + esi + 0x1c]
call fcn.10007cb0
sub esp, 0x18
mov dword [ebp - 0x38], eax
mov ecx, esp
mov dword [ebp - 0x54], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x10056198
mov eax, dword [ecx]
jmp 0x1005619a
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 0x10]
push 0
push eax
call fcn.10002480
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x48]
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x38]
call fcn.10008230
add esp, 4
mov byte [ebp - 4], 1
call fcn.1000ea80
add esp, 0x30
test al, al
je 0x10056287
mov eax, dword [edi + 0xe8]
lea ecx, [ebp - 0x1c]
add eax, esi
push eax
call fcn.10059100
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
jmp 0x1005628d
mov eax, dword [edi + 0xe8]
add eax, esi
mov dword [ebp - 0x44], eax
cmp eax, ebx
jae 0x10056253
cmp ecx, eax
ja 0x10056253
sub eax, ecx
sar eax, 6
mov dword [ebp - 0x44], eax
cmp ebx, dword [ebp - 0x14]
jne 0x1005622c
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10059300
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], ecx
shl eax, 6
add eax, ecx
mov byte [ebp - 4], 6
test ebx, ebx
je 0x10056244
push eax
mov ecx, ebx
call fcn.100597f0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
add ebx, 0x40
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], ebx
jmp 0x1005628d
cmp ebx, dword [ebp - 0x14]
jne 0x1005626d
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10059300
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 7
test ebx, ebx
je 0x1005627d
push eax
mov ecx, ebx
call fcn.100597f0
add ebx, 0x40
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], ebx
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov eax, dword [edi + 0xec]
inc edx
sub eax, dword [edi + 0xe8]
add esi, 0x40
sar eax, 6
mov dword [ebp - 0x3c], edx
cmp edx, eax
jb 0x10055ec0
mov esi, ebx
sub esi, ecx
cmp esi, 0x40
jae 0x1005639f
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
lea ebx, [edi + 0xac]
mov edi, 0xc
mov esi, dword [ebx]
test esi, esi
je 0x100562e5
push 4
push esi
call eax
test eax, eax
jne 0x100562e0
push eax
mov ecx, esi
call dword [0x1006ebec]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add ebx, 4
sub edi, 1
jne 0x100562c8
mov edi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x18]
mov esi, dword [edi + 0x194]
mov ecx, dword [edi + 0x19c]
mov dword [ebp - 0x38], ecx
test esi, esi
je 0x1005631a
push 4
push esi
call eax
test eax, eax
jne 0x1005631a
push dword [ebp - 0x38]
mov ecx, esi
call dword [0x1006ec50]
mov esi, dword [ebp - 0x40]
mov dword [edi + 0x1a0], 1
test esi, esi
je 0x10056bdb
push dword [ebp - 0x54]
mov edx, ebx
push ecx
mov ecx, esi
call fcn.1005b090
mov eax, dword [ebp - 0x14]
add esp, 8
sub eax, esi
sar eax, 6
cmp eax, 0x3ffffff
jbe 0x10056354
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
shl eax, 6
cmp eax, 0x1000
jb 0x10056391
test byte [ebp - 0x1c], 0x1f
je 0x1005636a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [esi - 4]
cmp eax, esi
jb 0x10056377
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub esi, eax
cmp esi, 4
jae 0x10056384
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp esi, 0x23
jbe 0x1005638f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov esi, eax
push esi
call fcn.10063060
add esp, 4
jmp 0x10056bdb
lea eax, [ebp - 0x38]
sar esi, 6
push eax
push esi
mov edx, ebx
mov dword [ebp - 0x38], 0x10051560
mov dword [ebp - 0x78], esi
call fcn.100596f0
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1006fb10]
divsd xmm0, qword [0x1006f0a8]
movsd qword [ebp - 0x58], xmm0
fld qword [ebp - 0x58]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp qword [ebp - 0x58]
movsd xmm0, qword [ebp - 0x58]
call fcn.100415f0
call fcn.100642b1
mov edx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [edi + 0x1a0], eax
mov eax, dword [ebp + 8]
lea ecx, [eax + eax*2]
shl ecx, 2
mov dword [ebp - 0x54], ecx
lea eax, [ecx - 0xc]
mov dword [ebp - 0x48], eax
cmp eax, ecx
jge 0x10056b8c
mov ecx, dword [ebp - 0x40]
mov ebx, 0xffffffc8
shl eax, 6
lea esi, [ecx + 0x1c]
add esi, eax
mov eax, 0xffffffe4
sub eax, ecx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x5c], eax
lea ecx, [edi + 0xa8]
add ecx, 4
add ebx, 0x38
mov dword [ebp - 0x3c], ecx
cmp ebx, 0x310
jg 0x10056b89
mov eax, dword [ebp - 0x78]
dec eax
cmp dword [ebp - 0x48], eax
jle 0x10056482
mov eax, dword [ecx]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10056b6d
push 4
push eax
call edx
test eax, eax
jne 0x10056b6a
push eax
jmp 0x10056b61
mov ecx, dword [esi]
test ecx, ecx
jne 0x1005648c
xor eax, eax
jmp 0x100564b5
mov eax, 0x10624dd3
mul ecx
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.10015280
mov ecx, eax
call dword [0x1006eb98]
mov edx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ecx, dword [esi]
mov dword [ebp - 0x44], eax
test ecx, ecx
je 0x100566a9
cmp ecx, 0x5f5e100
jae 0x100566a9
mov ecx, dword [edi + 0xdc]
mov eax, dword [esi - 4]
mov edx, dword [ebp - 0x5c]
add edx, esi
mov dword [ecx + ebx + 0x1c], eax
mov ecx, dword [edi + 0xdc]
mov eax, dword [ebp - 0x40]
mov eax, dword [edx + eax + 0x1c]
mov dword [ebx + ecx + 0x20], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [edi + 0xdc]
add eax, 0x34
add eax, edx
add ecx, 0x24
push eax
add ecx, ebx
call fcn.1005ac50
mov ecx, dword [edi + 0xdc]
lea edx, [esi - 0x1c]
mov ecx, dword [ebx + ecx]
call fcn.10014f70
mov eax, dword [edi + 0xdc]
mov esi, eax
mov edx, dword [eax + ebx + 0x28]
sub edx, dword [eax + ebx + 0x24]
sar edx, 2
call fcn.1000e660
mov ecx, dword [esi + ebx + 0x24]
mov esi, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x44], esi
test esi, esi
je 0x10056837
mov eax, 0x10624dd3
mov ecx, 0xd78ae8
mul esi
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.10015280
mov ecx, eax
call dword [0x1006eb98]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10056837
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 4], 8
mov edx, esi
mov cl, byte [eax + 4]
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.10007cb0
mov esi, eax
test esi, esi
je 0x100565a8
cmp dword [esi + 0x48], 0
je 0x100565a8
push dword [ebp - 0x44]
xor edx, edx
push esi
jmp 0x100565b0
push dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
push 0
lea ecx, [ebp - 0x74]
call fcn.10007f50
add esp, 8
lea ecx, [ebp - 0x34]
push eax
call fcn.1000b810
lea ecx, [ebp - 0x74]
call fcn.10002380
mov eax, dword [edi + 0xdc]
cmp dword [ebx + eax + 0x18], 0
je 0x10056695
mov ecx, dword [ebx + eax + 0x18]
lea edx, [ebp - 0x34]
add ecx, 4
call fcn.1000e460
mov eax, dword [edi + 0xdc]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebx + eax + 0x18]
mov dword [eax + 0x50], ecx
mov eax, dword [edi + 0xdc]
mov eax, dword [eax + ebx + 0x18]
mov dword [eax + 0x54], esi
mov eax, dword [edi + 0xdc]
mov eax, dword [ebx + eax + 0x18]
mov dword [eax + 0x58], 1
test esi, esi
je 0x1005662a
movsx edx, word [esi + 0x56]
movsx eax, word [ecx + 0x66]
add edx, eax
jmp 0x1005662e
movsx edx, word [ecx + 0x66]
mov eax, dword [edi + 0xdc]
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebx + eax + 0x18]
mov dword [eax + 0x5c], edx
mov eax, dword [edi + 0xdc]
mov ecx, dword [ebx + eax + 0x18]
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x4c], eax
mov eax, dword [edi + 0xdc]
mov eax, dword [ebx + eax + 0x18]
cmp dword [eax], 0
je 0x10056698
mov eax, dword [edi + 0xdc]
lea edx, [ebp - 0x34]
mov ecx, dword [ebx + eax + 0x18]
mov ecx, dword [ecx]
call fcn.10014c60
mov eax, dword [edi + 0xdc]
mov dl, 1
mov ecx, dword [ebx + eax + 0x18]
mov ecx, dword [ecx]
call fcn.100147e0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.10002380
jmp 0x1005683a
mov esi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.10002380
jmp 0x1005683a
test eax, eax
jne 0x100566d0
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10056b6d
push 4
push eax
call edx
test eax, eax
jne 0x10056b6a
push eax
jmp 0x10056b61
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 4], 9
mov edx, ecx
mov cl, byte [eax + 4]
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.10007cb0
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10056704
cmp dword [eax + 0x48], 0
je 0x10056704
push dword [esi]
xor edx, edx
push eax
jmp 0x1005670b
push dword [esi]
mov edx, dword [ebp - 0x44]
push 0
lea ecx, [ebp - 0x74]
call fcn.10007f50
add esp, 8
lea ecx, [ebp - 0x34]
push eax
call fcn.1000b810
lea ecx, [ebp - 0x74]
call fcn.10002380
push dword [ebp - 0x38]
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x74]
call fcn.10008230
add esp, 4
mov byte [ebp - 4], 0xa
mov edx, eax
mov ecx, dword [edi + 0xdc]
mov ecx, dword [ebx + ecx]
call fcn.10014f70
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 9
call fcn.10002380
mov ecx, dword [edi + 0xdc]
mov eax, dword [esi - 4]
mov dword [ecx + ebx + 0x1c], eax
mov ecx, dword [edi + 0xdc]
mov eax, dword [esi]
mov dword [ebx + ecx + 0x20], eax
mov eax, dword [edi + 0xdc]
cmp dword [eax + ebx + 0x18], 0
je 0x10056829
mov ecx, dword [ebx + eax + 0x18]
lea edx, [ebp - 0x34]
add ecx, 4
call fcn.1000e460
mov eax, dword [edi + 0xdc]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebx + eax + 0x18]
mov dword [eax + 0x50], ecx
mov eax, dword [edi + 0xdc]
mov eax, dword [ebx + eax + 0x18]
mov dword [eax + 0x54], edx
mov eax, dword [edi + 0xdc]
mov eax, dword [ebx + eax + 0x18]
mov dword [eax + 0x58], 1
test edx, edx
je 0x100567d2
movsx edx, word [edx + 0x56]
movsx eax, word [ecx + 0x66]
add edx, eax
jmp 0x100567d6
movsx edx, word [ecx + 0x66]
mov eax, dword [edi + 0xdc]
mov eax, dword [eax + ebx + 0x18]
mov dword [eax + 0x5c], edx
mov eax, dword [edi + 0xdc]
mov ecx, dword [ebx + eax + 0x18]
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x4c], eax
mov eax, dword [edi + 0xdc]
mov eax, dword [eax + ebx + 0x18]
cmp dword [eax], 0
je 0x10056829
mov eax, dword [edi + 0xdc]
lea edx, [ebp - 0x34]
mov ecx, dword [ebx + eax + 0x18]
mov ecx, dword [ecx]
call fcn.10014c60
mov eax, dword [edi + 0xdc]
mov dl, 1
mov ecx, dword [ebx + eax + 0x18]
mov ecx, dword [ecx]
call fcn.100147e0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.10002380
jmp 0x1005683a
mov esi, dword [ebp - 0x4c]
mov eax, dword [esi + 8]
cmp eax, 1
jne 0x100568a4
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x90]
push 0x2e
call fcn.1000ebd0
add esp, 4
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 0x10
jb 0x10056861
mov eax, dword [eax]
movaps xmm0, xmmword [0x1006fe90]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x20], 0
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0xf
jb 0x10056873
sub esp, 0x18
mov byte [ebp - 0x20], 0
lea eax, [ebp - 0x2f]
mov ecx, esp
push eax
call fcn.100029c0
lea eax, [ebp - 0x74]
push eax
call fcn.100061b0
add esp, 0x20
mov byte [ebp - 4], 0xc
jmp 0x1005690f
cmp eax, 2
jne 0x10056937
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x90]
push 0x2e
call fcn.1000ebd0
add esp, 4
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 0x10
jb 0x100568cc
mov eax, dword [eax]
movaps xmm0, xmmword [0x100701d0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x20], 0
nop
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0xf
jb 0x100568e0
sub esp, 0x18
mov byte [ebp - 0x20], 0
lea eax, [ebp - 0x2f]
mov ecx, esp
push eax
call fcn.100029c0
lea eax, [ebp - 0x74]
push eax
call fcn.100061b0
add esp, 0x20
mov byte [ebp - 4], 0xe
mov ecx, dword [edi + 0xdc]
mov edx, eax
mov ecx, dword [ebx + ecx + 4]
call fcn.10014f70
lea ecx, [ebp - 0x74]
call fcn.10002380
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.10002380
mov edx, dword [esi + 0xc]
lea ecx, [ebp - 0x74]
push 0x2e
call fcn.1000ebd0
add esp, 4
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], 0x10
jb 0x10056953
mov eax, dword [eax]
movaps xmm0, xmmword [0x1006f510]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 0x20], 0x46
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0x10
jb 0x10056967
sub esp, 0x18
mov byte [ebp - 0x1f], 0
lea eax, [ebp - 0x2f]
mov ecx, esp
push eax
call fcn.100029c0
lea eax, [ebp - 0x90]
push eax
call fcn.100061b0
add esp, 0x20
mov byte [ebp - 4], 0x10
mov edx, eax
mov ecx, dword [edi + 0xdc]
mov ecx, dword [ebx + ecx + 8]
call fcn.10014f70
mov edx, dword [ebp - 0x7c]
cmp edx, 0x10
jb 0x100569c3
mov ecx, dword [ebp - 0x90]
inc edx
push 1
call fcn.10002790
add esp, 4
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
cmp edx, 0x10
jb 0x100569f2
mov ecx, dword [ebp - 0x74]
inc edx
push 1
call fcn.10002790
add esp, 4
mov ecx, dword [0x1007a234]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
test ecx, ecx
je 0x10056abe
mov edx, dword [esi + 8]
cmp edx, 1
jne 0x10056a22
mov eax, dword [ecx + 0x44]
cmp eax, dword [esi + 4]
jb 0x10056a37
cmp edx, 2
jne 0x10056abe
mov eax, dword [ecx + 0x48]
cmp eax, dword [esi + 4]
jae 0x10056abe
mov eax, dword [edi + 0xdc]
mov eax, dword [ebx + eax + 4]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10056a63
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10056a63
mov ecx, dword [ebp - 0x38]
push 0xffff0000
call dword [0x1006ec54]
mov eax, dword [edi + 0xdc]
mov eax, dword [ebx + eax + 0xc]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10056a91
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10056a91
mov ecx, dword [ebp - 0x38]
mov dl, 7
add ecx, 0xd0
call fcn.100151b0
mov eax, dword [edi + 0xdc]
mov eax, dword [ebx + eax + 0x10]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10056b46
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10056b46
mov dl, 7
jmp 0x10056b38
mov eax, dword [edi + 0xdc]
mov eax, dword [ebx + eax + 4]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10056aea
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10056aea
mov ecx, dword [ebp - 0x38]
push 0xfffff3ae
call dword [0x1006ec54]
mov eax, dword [edi + 0xdc]
mov eax, dword [ebx + eax + 0xc]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10056b18
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10056b18
mov ecx, dword [ebp - 0x38]
mov dl, 2
add ecx, 0xd0
call fcn.100151b0
mov eax, dword [edi + 0xdc]
mov eax, dword [ebx + eax + 0x10]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10056b46
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10056b46
mov dl, 2
mov ecx, dword [ebp - 0x38]
add ecx, 0xd0
call fcn.100151b0
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10056b6d
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10056b6a
push 1
mov ecx, dword [ebp - 0x38]
call dword [0x1006ebec]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x48]
add esi, 0x40
mov edx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], esi
cmp eax, dword [ebp - 0x54]
jl 0x10056444
mov ebx, dword [ebp - 0x18]
mov esi, dword [edi + 0x194]
mov eax, dword [edi + 0x19c]
mov dword [ebp - 0x54], eax
test esi, esi
je 0x10056bb3
push 4
push esi
call edx
test eax, eax
jne 0x10056bb3
push dword [ebp - 0x54]
mov ecx, esi
call dword [0x1006ec50]
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x10056bdb
push dword [ebp - 0x54]
mov edx, ebx
push ecx
mov ecx, esi
call fcn.1005b090
mov edx, dword [ebp - 0x14]
mov ecx, esi
sub edx, esi
push 0x40
sar edx, 6
call fcn.10002790
add esp, 0xc
mov edx, dword [ebp + 0x24]
cmp edx, 0x10
jb 0x10056bf1
mov ecx, dword [ebp + 0x10]
inc edx
push 1
call fcn.10002790
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10063065
mov esp, ebp
pop ebp
ret 0x20