Function at 0x100593d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009baf3
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x100bd078]
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 - 0x50], edi
mov dword [ebp - 4], 0
call fcn.10059030
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
xor ecx, ecx
movq qword [ebp - 0x34], xmm0
xor edx, edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 1
mov eax, dword [edi + 0xec]
sub eax, dword [edi + 0xe8]
sar eax, 6
mov dword [ebp - 0x60], edx
test eax, eax
je 0x10059602
mov bl, byte [ebp + 0xc]
xor esi, esi
nop
test bl, bl
je 0x100594b0
cmp dword [ebp + 0x24], 0x10
lea ecx, [ebp + 0x10]
mov word [ebp - 0x58], 0x2f
lea edx, [ebp - 0x57]
cmovae ecx, dword [ebp + 0x10]
push 0
mov byte [ebp - 0x57], 0
call fcn.10003230
add esp, 4
test eax, eax
jne 0x100594a8
cmp dword [ebp + 0x20], eax
ja 0x100594a8
mov ecx, dword [edi + 0xe8]
movzx eax, bl
cmp dword [esi + ecx + 0x30], eax
jne 0x100595db
mov eax, dword [edi + 0xe8]
lea ecx, [ebp - 0x34]
add eax, esi
push eax
call fcn.1005c710
jmp 0x100595db
test bl, bl
jne 0x100596f1
cmp dword [ebp + 0x24], 0x10
lea ecx, [ebp + 0x10]
mov word [ebp - 0x5c], 0x3f
lea edx, [ebp - 0x5b]
cmovae ecx, dword [ebp + 0x10]
push 0
mov byte [ebp - 0x5b], 0
call fcn.10003230
add esp, 4
test eax, eax
jne 0x100594db
cmp dword [ebp + 0x20], eax
jbe 0x10059492
mov eax, dword [edi + 0xe8]
mov ecx, dword [eax + esi + 0x1c]
test ecx, ecx
jne 0x100594ed
xor ebx, ebx
jmp 0x10059512
mov eax, 0x10624dd3
mul ecx
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.100173f0
mov ecx, eax
call dword [0x100b0d3c]
mov ebx, eax
mov ecx, dword [edi + 0xe8]
cmp dword [ecx + esi + 0x1c], 0
jbe 0x10059679
cmp dword [esi + ecx + 0x1c], 0x5f5e100
jae 0x10059679
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x68], 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 0x1005955f
mov eax, dword [ecx]
jmp 0x10059561
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 0x10]
push 0
push eax
call fcn.10002440
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 0x100595a8
mov edx, dword [ecx]
jmp 0x100595aa
mov edx, ecx
push 0xffffffffffffffff
push 0
push eax
mov byte [edx], 0
call fcn.10002440
mov byte [ebp - 4], 1
call fcn.100124e0
add esp, 0x30
test al, al
je 0x100595d8
mov eax, dword [edi + 0xe8]
lea ecx, [ebp - 0x34]
add eax, esi
push eax
call fcn.1005c710
mov bl, byte [ebp + 0xc]
mov eax, dword [edi + 0xec]
add esi, 0x40
mov ecx, dword [ebp - 0x60]
sub eax, dword [edi + 0xe8]
inc ecx
sar eax, 6
mov dword [ebp - 0x60], ecx
cmp ecx, eax
jb 0x10059450
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov ebx, edx
sub ebx, ecx
cmp ebx, 0x40
jae 0x10059865
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
lea ebx, [edi + 0xac]
mov edi, 0xc
nop
mov esi, dword [ebx]
test esi, esi
je 0x1005963d
push 4
push esi
call eax
test eax, eax
jne 0x10059638
push eax
mov ecx, esi
call dword [0x100b0d90]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add ebx, 4
sub edi, 1
jne 0x10059620
mov edi, dword [ebp - 0x50]
mov esi, dword [edi + 0x194]
mov ebx, dword [edi + 0x19c]
test esi, esi
je 0x1005966a
push 4
push esi
call eax
test eax, eax
jne 0x1005966a
push ebx
mov ecx, esi
call dword [0x100b0df0]
mov dword [edi + 0x1a0], 1
jmp 0x1005a298
test ebx, ebx
je 0x100595d8
mov edx, dword [edi + 0xe8]
mov cl, byte [ebx + 4]
mov edx, dword [edx + esi + 0x1c]
call fcn.1000b6c0
sub esp, 0x18
mov dword [ebp - 0x64], eax
mov ecx, esp
mov dword [ebp - 0x68], 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 0x100596c4
mov eax, dword [ecx]
jmp 0x100596c6
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 0x10]
push 0
push eax
call fcn.10002440
mov byte [ebp - 4], 3
sub esp, 0x18
mov edx, ebx
mov ecx, esp
push dword [ebp - 0x64]
call fcn.1000bc40
add esp, 4
jmp 0x100595b7
cmp dword [ebp + 0x24], 0x10
lea ecx, [ebp + 0x10]
mov word [ebp - 0x54], 0x61
lea edx, [ebp - 0x53]
cmovae ecx, dword [ebp + 0x10]
push 0
mov byte [ebp - 0x53], 0
call fcn.10003230
add esp, 4
test eax, eax
jne 0x10059720
cmp dword [ebp + 0x20], eax
jbe 0x10059492
mov ecx, dword [edi + 0xe8]
movzx eax, bl
cmp dword [esi + ecx + 0x30], eax
jne 0x100595db
mov eax, ecx
mov ecx, dword [eax + esi + 0x1c]
test ecx, ecx
jne 0x10059741
xor ebx, ebx
jmp 0x10059766
mov eax, 0x10624dd3
mul ecx
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.100173f0
mov ecx, eax
call dword [0x100b0d3c]
mov ebx, eax
mov ecx, dword [edi + 0xe8]
cmp dword [esi + ecx + 0x1c], 0
jbe 0x100597ff
cmp dword [esi + ecx + 0x1c], 0x5f5e100
jae 0x100597ff
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6c], 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 0x100597af
mov eax, dword [ecx]
jmp 0x100597b1
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 0x10]
push 0
push eax
call fcn.10002440
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 0x100595a8
mov edx, dword [ecx]
jmp 0x100595aa
test ebx, ebx
je 0x100595d8
mov edx, dword [edi + 0xe8]
mov cl, byte [ebx + 4]
mov edx, dword [edx + esi + 0x1c]
call fcn.1000b6c0
sub esp, 0x18
mov dword [ebp - 0x64], eax
mov ecx, esp
mov dword [ebp - 0x6c], 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 0x1005984a
mov eax, dword [ecx]
jmp 0x1005984c
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 0x10]
push 0
push eax
call fcn.10002440
mov byte [ebp - 4], 5
jmp 0x100596da
lea eax, [ebp - 0x50]
sar ebx, 6
push eax
push ebx
mov dword [ebp - 0x50], 0x10054400
mov dword [ebp - 0x5c], ebx
call fcn.1005cdc0
movd xmm0, ebx
mov eax, ebx
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100b1d10]
divsd xmm0, qword [0x100b1198]
movsd qword [ebp - 0x70], xmm0
fld qword [ebp - 0x70]
fstp qword [esp]
call fcn.10095e90
fstp qword [ebp - 0x70]
movsd xmm0, qword [ebp - 0x70]
movsd qword [esp], xmm0
call fcn.10043f80
fnstcw word [ebp - 0x52]
movzx eax, word [ebp - 0x52]
add esp, 8
or eax, 0xc00
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [ebp - 0x50], eax
or edx, 0xffffffff
fldcw word [ebp - 0x50]
fistp qword [ebp - 0x70]
mov eax, dword [ebp - 0x70]
mov dword [edi + 0x1a0], eax
mov eax, dword [ebp + 8]
fldcw word [ebp - 0x52]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [ebp - 0x68], eax
lea esi, [eax - 0xc]
mov dword [ebp - 0x64], esi
cmp esi, eax
jge 0x1005a276
inc edx
mov dword [ebp - 0x54], edx
cmp edx, 0xe
jg 0x1005a276
lea eax, [ebx - 1]
cmp esi, eax
jle 0x10059940
mov esi, dword [edi + edx*4 + 0xac]
test esi, esi
je 0x1005a260
push 4
push esi
call ecx
test eax, eax
jne 0x10059938
push eax
mov ecx, esi
call dword [0x100b0d90]
mov edx, dword [ebp - 0x54]
jmp 0x1005a260
mov edx, esi
mov esi, dword [ebp - 0x34]
shl edx, 6
add esi, edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x58], esi
mov ebx, dword [esi + 0x1c]
test ebx, ebx
je 0x10059985
mov eax, 0x10624dd3
mov ecx, 0xd78ae8
mul ebx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.100173f0
mov ecx, eax
call dword [0x100b0d3c]
mov edx, dword [ebp - 0x50]
mov ebx, eax
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x60], ebx
test eax, eax
je 0x10059bbc
cmp eax, 0x5f5e100
jae 0x10059bbc
mov ecx, dword [ebp - 0x54]
mov eax, dword [esi + 0x18]
lea ebx, [ecx*8]
sub ebx, ecx
mov ecx, dword [edi + 0xdc]
shl ebx, 3
mov dword [ecx + ebx + 0x1c], eax
mov ecx, dword [edi + 0xdc]
mov eax, dword [ebp - 0x34]
mov eax, dword [edx + eax + 0x1c]
mov dword [ebx + ecx + 0x20], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [edi + 0xdc]
add eax, 0x34
add eax, edx
add ecx, 0x24
push eax
add ecx, ebx
call fcn.1005ddb0
mov ecx, dword [edi + 0xdc]
mov edx, esi
mov ecx, dword [ebx + ecx]
call fcn.100170e0
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.10012150
mov ecx, dword [esi + ebx + 0x24]
mov ecx, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x60], ecx
test ecx, ecx
je 0x10059df8
mov eax, 0x10624dd3
mul ecx
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.100173f0
mov ecx, eax
call dword [0x100b0d3c]
mov esi, eax
test esi, esi
je 0x10059df8
mov dword [ebp - 0x14], 0xf
mov edx, dword [ebp - 0x60]
mov byte [ebp - 4], 6
mov cl, byte [esi + 4]
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000b6c0
mov dword [ebp - 0x50], eax
test eax, eax
je 0x10059aa4
cmp dword [eax + 0x48], 0
je 0x10059aa4
push dword [ebp - 0x60]
xor edx, edx
lea ecx, [ebp - 0x88]
push eax
call fcn.1000b960
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000f1d0
lea ecx, [ebp - 0x88]
call fcn.10002340
jmp 0x10059add
push dword [ebp - 0x60]
mov edx, esi
lea ecx, [ebp - 0x88]
push 0
call fcn.1000b960
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000f1d0
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x10059add
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.10002760
mov eax, dword [edi + 0xdc]
cmp dword [eax + ebx + 0x18], 0
je 0x10059b97
mov ecx, dword [ebx + eax + 0x18]
lea edx, [ebp - 0x28]
add ecx, 4
call fcn.10011f00
mov eax, dword [edi + 0xdc]
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebx + eax + 0x18]
mov dword [eax + 0x50], esi
mov eax, dword [edi + 0xdc]
mov eax, dword [ebx + eax + 0x18]
mov dword [eax + 0x54], ecx
mov eax, dword [edi + 0xdc]
mov eax, dword [eax + ebx + 0x18]
mov dword [eax + 0x58], 1
test ecx, ecx
je 0x10059b3b
movsx ecx, word [ecx + 0x56]
movsx eax, word [esi + 0x66]
add ecx, eax
jmp 0x10059b3f
movsx ecx, word [esi + 0x66]
mov eax, dword [edi + 0xdc]
mov esi, dword [ebp - 0x58]
mov eax, dword [ebx + eax + 0x18]
mov dword [eax + 0x5c], ecx
mov eax, dword [edi + 0xdc]
mov ecx, dword [eax + ebx + 0x18]
mov eax, dword [esi + 0x2c]
mov dword [ecx + 0x4c], eax
mov eax, dword [edi + 0xdc]
mov eax, dword [ebx + eax + 0x18]
cmp dword [eax], 0
je 0x10059b9a
mov eax, dword [edi + 0xdc]
lea edx, [ebp - 0x28]
mov ecx, dword [ebx + eax + 0x18]
mov ecx, dword [ecx]
call fcn.10016d50
mov eax, dword [edi + 0xdc]
mov dl, 1
mov ecx, dword [ebx + eax + 0x18]
mov ecx, dword [ecx]
call fcn.100168c0
jmp 0x10059b9a
mov esi, dword [ebp - 0x58]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10059dfb
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002760
jmp 0x10059dfb
test ebx, ebx
jne 0x10059be5
mov edx, dword [ebp - 0x54]
mov esi, dword [edi + edx*4 + 0xac]
test esi, esi
je 0x1005a25d
push 4
push esi
call ecx
test eax, eax
jne 0x1005a25a
push eax
jmp 0x1005a252
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 4], 7
mov edx, eax
mov cl, byte [ebx + 4]
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
call fcn.1000b6c0
mov dword [ebp - 0x58], eax
test eax, eax
je 0x10059c31
cmp dword [eax + 0x48], 0
je 0x10059c31
push dword [esi + 0x1c]
xor edx, edx
lea ecx, [ebp - 0x88]
push eax
call fcn.1000b960
add esp, 8
lea ecx, [ebp - 0x4c]
push eax
call fcn.1000f1d0
jmp 0x10059c83
push dword [esi + 0x1c]
mov edx, ebx
lea ecx, [ebp - 0x88]
push 0
call fcn.1000b960
add esp, 8
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x4c]
cmp ecx, eax
je 0x10059c7f
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x10059c62
inc eax
push eax
push dword [ebp - 0x4c]
call fcn.10002760
push dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
call fcn.10006190
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x10059c9e
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.10002760
push dword [ebp - 0x58]
mov edx, ebx
lea ecx, [ebp - 0x88]
call fcn.1000bc40
add esp, 4
mov byte [ebp - 4], 9
mov edx, eax
mov ecx, dword [ebp - 0x54]
lea ebx, [ecx*8]
sub ebx, ecx
mov ecx, dword [edi + 0xdc]
shl ebx, 3
mov ecx, dword [ebx + ecx]
call fcn.100170e0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x10059cf3
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.10002760
mov ecx, dword [edi + 0xdc]
mov eax, dword [esi + 0x18]
mov dword [ebx + ecx + 0x1c], eax
mov ecx, dword [edi + 0xdc]
mov eax, dword [esi + 0x1c]
mov dword [ebx + ecx + 0x20], eax
mov eax, dword [edi + 0xdc]
cmp dword [ebx + eax + 0x18], 0
je 0x10059ddd
mov ecx, dword [eax + ebx + 0x18]
lea edx, [ebp - 0x4c]
add ecx, 4
call fcn.10011f00
mov eax, dword [edi + 0xdc]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x58]
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 [eax + ebx + 0x18]
mov dword [eax + 0x58], 1
test edx, edx
je 0x10059d6e
movsx edx, word [edx + 0x56]
movsx eax, word [ecx + 0x66]
add edx, eax
jmp 0x10059d72
movsx edx, word [ecx + 0x66]
mov eax, dword [edi + 0xdc]
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 + 0x2c]
mov dword [ecx + 0x4c], eax
mov eax, dword [edi + 0xdc]
mov eax, dword [ebx + eax + 0x18]
cmp dword [eax], 0
je 0x10059ddd
mov eax, dword [edi + 0xdc]
lea edx, [ebp - 0x4c]
mov ecx, dword [eax + ebx + 0x18]
mov ecx, dword [ecx]
call fcn.10016d50
mov eax, dword [edi + 0xdc]
mov eax, dword [ebx + eax + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x10059ddd
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10059ddd
mov ecx, dword [ebp - 0x50]
push 1
call dword [0x100b0d90]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x10059dfb
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.10002760
jmp 0x10059dfb
mov esi, dword [ebp - 0x58]
mov eax, dword [esi + 0x24]
cmp eax, 1
jne 0x10059ebe
mov edx, dword [esi + 0x20]
lea ecx, [ebp - 0x88]
push 0x2e
call fcn.10012630
add esp, 4
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x10059e26
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b1b80]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x14], 0
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0xf
jb 0x10059e38
sub esp, 0x18
mov byte [ebp - 0x14], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x10059e74
mov eax, dword [edx]
jmp 0x10059e76
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x23], 0
jne 0x10059e83
xor ecx, ecx
jmp 0x10059e9a
lea ecx, [ebp - 0x23]
lea eax, [ecx + 1]
mov dword [ebp - 0x50], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10059e90
sub ecx, dword [ebp - 0x50]
push ecx
lea eax, [ebp - 0x23]
mov ecx, edx
push eax
call fcn.10002880
lea eax, [ebp - 0xa0]
push eax
call fcn.10009ac0
add esp, 0x20
mov byte [ebp - 4], 0xb
jmp 0x10059f79
cmp eax, 2
jne 0x10059fe2
mov edx, dword [esi + 0x20]
lea ecx, [ebp - 0x88]
push 0x2e
call fcn.10012630
add esp, 4
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 0x10
jb 0x10059ee6
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b1a50]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x14], 0
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0xf
jb 0x10059ef8
sub esp, 0x18
mov byte [ebp - 0x14], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x10059f34
mov eax, dword [edx]
jmp 0x10059f36
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x23], 0
jne 0x10059f43
xor ecx, ecx
jmp 0x10059f5a
lea ecx, [ebp - 0x23]
lea eax, [ecx + 1]
mov dword [ebp - 0x50], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10059f50
sub ecx, dword [ebp - 0x50]
push ecx
lea eax, [ebp - 0x23]
mov ecx, edx
push eax
call fcn.10002880
lea eax, [ebp - 0xa0]
push eax
call fcn.10009ac0
add esp, 0x20
mov byte [ebp - 4], 0xd
mov ecx, dword [edi + 0xdc]
mov edx, eax
mov ecx, dword [ebx + ecx + 4]
call fcn.100170e0
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x10059fa8
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.10002760
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x74]
mov byte [ebp - 0xa0], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
cmp eax, 0x10
jb 0x10059fe2
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.10002760
mov edx, dword [esi + 0x28]
lea ecx, [ebp - 0x88]
push 0x2e
call fcn.10012630
add esp, 4
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 0x10
jb 0x1005a001
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b1600]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x5a
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x10
jb 0x1005a015
sub esp, 0x18
mov byte [ebp - 0x13], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1005a051
mov eax, dword [edx]
jmp 0x1005a053
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x23], 0
jne 0x1005a060
xor ecx, ecx
jmp 0x1005a07a
lea ecx, [ebp - 0x23]
lea eax, [ecx + 1]
mov dword [ebp - 0x50], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005a070
sub ecx, dword [ebp - 0x50]
push ecx
lea eax, [ebp - 0x23]
mov ecx, edx
push eax
call fcn.10002880
lea eax, [ebp - 0xa0]
push eax
call fcn.10009ac0
add esp, 0x20
mov byte [ebp - 4], 0xf
mov edx, eax
mov ecx, dword [edi + 0xdc]
mov ecx, dword [ebx + ecx + 8]
call fcn.100170e0
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x1005a0c8
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.10002760
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
cmp eax, 0x10
jb 0x1005a102
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.10002760
mov ecx, dword [0x100c19b4]
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
test ecx, ecx
je 0x1005a1bf
mov edx, dword [esi + 0x24]
cmp edx, 1
jne 0x1005a135
mov eax, dword [ecx + 0x44]
cmp eax, dword [esi + 0x20]
jb 0x1005a146
cmp edx, 2
jne 0x1005a1bf
mov eax, dword [ecx + 0x48]
cmp eax, dword [esi + 0x20]
jae 0x1005a1bf
mov eax, dword [edi + 0xdc]
mov esi, dword [eax + ebx + 4]
test esi, esi
je 0x1005a16e
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005a16e
push 0xffff0000
mov ecx, esi
call dword [0x100b0df4]
mov eax, dword [edi + 0xdc]
mov esi, dword [eax + ebx + 0xc]
test esi, esi
je 0x1005a196
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005a196
lea ecx, [esi + 0xd0]
mov dl, 7
call fcn.10017320
mov eax, dword [edi + 0xdc]
mov esi, dword [eax + ebx + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test esi, esi
je 0x1005a239
push 4
push esi
call ebx
test eax, eax
jne 0x1005a239
mov dl, 7
jmp 0x1005a22e
mov eax, dword [edi + 0xdc]
mov esi, dword [eax + ebx + 4]
test esi, esi
je 0x1005a1e7
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005a1e7
push 0xfffff3ae
mov ecx, esi
call dword [0x100b0df4]
mov eax, dword [edi + 0xdc]
mov esi, dword [eax + ebx + 0xc]
test esi, esi
je 0x1005a20f
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005a20f
lea ecx, [esi + 0xd0]
mov dl, 2
call fcn.10017320
mov eax, dword [edi + 0xdc]
mov esi, dword [eax + ebx + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test esi, esi
je 0x1005a239
push 4
push esi
call ebx
test eax, eax
jne 0x1005a239
mov dl, 2
lea ecx, [esi + 0xd0]
call fcn.10017320
mov edx, dword [ebp - 0x54]
mov esi, dword [edi + edx*4 + 0xac]
test esi, esi
je 0x1005a25d
push 4
push esi
call ebx
test eax, eax
jne 0x1005a25a
push 1
mov ecx, esi
call dword [0x100b0d90]
mov edx, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x64]
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
inc esi
mov dword [ebp - 0x64], esi
cmp esi, dword [ebp - 0x68]
jl 0x10059903
mov esi, dword [edi + 0x194]
mov ebx, dword [edi + 0x19c]
test esi, esi
je 0x1005a298
push 4
push esi
call ecx
test eax, eax
jne 0x1005a298
push ebx
mov ecx, esi
call dword [0x100b0df0]
lea ecx, [ebp - 0x34]
call fcn.1005e050
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x1005a2b5
inc eax
lea ecx, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
call fcn.10002760
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.10067c75
mov esp, ebp
pop ebp
ret 0x20