Function at 0x10085140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x1010d170]
xor eax, esp
mov dword [esp + 0xd0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
xor esi, esi
shr eax, 3
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0x10]
push edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x44], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x54], 2
cmp eax, 0x14
je 0x100851b4
cmp eax, 0x1c
je 0x100851b4
cmp eax, 0x20
je 0x100851b4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.100ae60d
mov esp, ebp
pop ebp
ret
cmp edx, esi
jne 0x100851c0
mov dword [esp + 0x40], 0x100f6d70
cmp ecx, 0x200
jae 0x100851cd
mov ecx, 0x200
add ecx, 0x3f
shr ecx, 6
shl ecx, 6
mov dword [ebp + 8], ecx
call fcn.10033d30
mov dword [esp + 0x18], eax
cmp eax, esi
je 0x10085ece
call fcn.100784b0
mov dword [esp + 0x3c], eax
test eax, eax
je 0x10085c81
mov esi, dword [esp + 0x18]
call fcn.10033e60
call fcn.10033ef0
mov dword [esp + 0x10], eax
call fcn.10033ef0
mov dword [esp + 0x2c], eax
call fcn.10033ef0
mov dword [esp + 0x14], eax
call fcn.10033ef0
mov dword [esp + 0x28], eax
call fcn.10033ef0
mov dword [esp + 0x38], eax
call fcn.10033ef0
mov dword [esp + 0x48], eax
call fcn.10033ef0
mov dword [esp + 0x24], eax
call fcn.10033ef0
mov ecx, dword [ebp + 8]
dec ecx
push 0x100f7b0c
mov dword [esp + 0x24], eax
push eax
mov eax, ecx
call fcn.1003ff50
add esp, 8
test eax, eax
je 0x10085c81
test ebx, ebx
je 0x100852a5
mov eax, dword [ebx]
sub eax, 1
je 0x1008528e
sub eax, 1
je 0x1008527c
xor eax, eax
jmp 0x100852aa
mov eax, dword [esp + 0x34]
mov ecx, dword [ebx + 8]
push ebx
push eax
push 0
call ecx
add esp, 0xc
jmp 0x100852aa
mov eax, dword [ebx + 8]
test eax, eax
je 0x100852a5
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x34]
push edx
push ecx
push 0
call eax
add esp, 0xc
mov eax, 1
inc dword [esp + 0x34]
test eax, eax
je 0x10085c81
mov ecx, dword [0x10114e80]
test ecx, ecx
jne 0x100852f4
push 1
mov eax, 0x10114ee8
call fcn.10056fa0
add esp, 4
test eax, eax
je 0x100852e9
mov ecx, dword [eax + 0x1c]
mov dword [0x10114e80], ecx
test ecx, ecx
jne 0x1008540a
call fcn.10032240
mov ecx, 0x1010ec30
mov dword [0x10114e80], ecx
mov ecx, dword [ecx + 0x10]
mov esi, dword [esp + 0x1c]
test ecx, ecx
je 0x1008530d
lea edx, [esp + 0x9c]
push esi
push edx
call ecx
add esp, 8
push esi
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.100b3140
add esp, 0xc
push esi
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0xc4]
push eax
call fcn.100b3140
lea eax, [esi - 1]
add esp, 0xc
test eax, eax
jl 0x10085352
add byte [esp + eax + 0x7c], 1
jne 0x10085352
sub eax, 1
jns 0x10085346
mov ecx, dword [esp + 0x40]
push ecx
push 0
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.1002bda0
add esp, 0x14
test eax, eax
je 0x10085c81
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
push ecx
push 0
lea edx, [esp + 0xc4]
push edx
push eax
lea ecx, [esp + 0x8c]
push ecx
call fcn.1002bda0
add esp, 0x14
test eax, eax
je 0x10085c81
mov esi, dword [esp + 0x1c]
xor eax, eax
test esi, esi
jle 0x100853c0
lea ecx, [ecx]
mov dl, byte [esp + eax + 0xbc]
xor byte [esp + eax + 0x5c], dl
inc eax
cmp eax, esi
jl 0x100853b0
or byte [esp + 0x5c], 0x80
or byte [esp + esi + 0x5b], 1
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x2c]
mov ecx, esi
call fcn.10024550
add esp, 4
test eax, eax
je 0x10085c81
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push ebx
push 1
push ecx
push 0x32
call fcn.10089860
add esp, 0x10
test eax, eax
jg 0x10085414
je 0x10085268
jmp 0x10085c81
mov dword [0x10114e7c], eax
jmp 0x100852f4
test ebx, ebx
je 0x10085468
mov eax, dword [ebx]
sub eax, 1
je 0x10085523
sub eax, 1
jne 0x10085c81
mov edx, dword [ebx + 8]
push ebx
push eax
push 2
call edx
add esp, 0xc
test eax, eax
je 0x10085c81
mov eax, dword [ebx]
sub eax, 1
je 0x10085540
sub eax, 1
jne 0x10085c81
mov edx, dword [ebx + 8]
push ebx
push eax
push 3
call edx
add esp, 0xc
test eax, eax
je 0x10085c81
mov edx, dword [ebp + 8]
dec edx
mov eax, 0xcccccccd
mul edx
xor ecx, ecx
shr edx, 7
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
test ecx, ecx
je 0x100854af
test ebx, ebx
je 0x100854af
mov eax, dword [ebx]
sub eax, 1
je 0x1008555d
sub eax, 1
jne 0x10085c81
push ebx
push ecx
push eax
mov eax, dword [ebx + 8]
call eax
add esp, 0xc
test eax, eax
je 0x10085c81
mov eax, dword [esp + 0x14]
cmp dword [eax + 8], 1
jge 0x10085515
push eax
mov eax, 1
call fcn.100242c0
mov edi, eax
add esp, 4
test edi, edi
je 0x10085579
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx]
test esi, esi
je 0x10085508
mov eax, dword [0x10114e28]
test eax, eax
je 0x100854ec
push 0
push esi
call eax
add esp, 8
push esi
call dword [0x1010f130]
mov eax, dword [0x10114e28]
add esp, 4
test eax, eax
je 0x10085508
push 1
push 0
call eax
add esp, 8
mov eax, dword [esp + 0x14]
mov dword [eax], edi
mov dword [eax + 8], 1
mov edx, dword [eax]
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [edx], ecx
mov dword [eax + 4], ecx
jmp 0x1008557d
mov eax, dword [ebx + 8]
test eax, eax
je 0x10085440
mov ecx, dword [ebx + 4]
push ecx
push 0
push 2
call eax
add esp, 0xc
jmp 0x10085440
mov eax, dword [ebx + 8]
test eax, eax
je 0x10085468
mov ecx, dword [ebx + 4]
push ecx
push 0
push 3
call eax
add esp, 0xc
jmp 0x10085468
mov eax, dword [ebx + 8]
test eax, eax
je 0x100854af
mov edx, dword [ebx + 4]
push edx
push ecx
push 0
call eax
add esp, 0xc
jmp 0x100854af
mov eax, dword [esp + 0x14]
xor esi, esi
cmp dword [esp + 0x50], esi
jl 0x1008562f
mov ecx, dword [esp + 0x1c]
lea eax, [ecx - 1]
test eax, eax
jl 0x100855a0
add byte [esp + eax + 0x7c], 1
jne 0x100855a0
sub eax, 1
jns 0x10085594
mov eax, dword [esp + 0x40]
push eax
push 0
lea edx, [esp + 0x64]
push edx
push ecx
lea eax, [esp + 0x8c]
push eax
call fcn.1002bda0
add esp, 0x14
test eax, eax
je 0x10085c81
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.10024550
add esp, 4
test eax, eax
je 0x10085c81
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
add eax, eax
add eax, eax
add eax, eax
imul eax, esi
push ecx
push ecx
call fcn.1003ff50
add esp, 8
test eax, eax
je 0x10085c81
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
push eax
call fcn.1003b8c0
add esp, 0xc
test eax, eax
je 0x10085c81
inc esi
cmp esi, dword [esp + 0x50]
jle 0x10085589
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
dec ecx
mov esi, eax
call fcn.10024830
test eax, eax
je 0x10085c81
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call fcn.10024440
add esp, 8
test eax, eax
je 0x10085c81
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
push edx
push eax
push eax
call fcn.1003b8c0
add esp, 0xc
test eax, eax
je 0x10085c81
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
push eax
call fcn.1003fdc0
add esp, 4
test eax, eax
je 0x10085c81
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
push ecx
push 0
call fcn.1006a730
add esp, 0x14
test eax, eax
je 0x10085c81
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
push 0x100f7b0c
push edx
push eax
call fcn.1003bbc0
add esp, 0xc
test eax, eax
je 0x10085c81
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call fcn.1003bbc0
add esp, 0xc
test eax, eax
je 0x10085c81
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, esi
call fcn.100246e0
test eax, eax
jl 0x10085725
mov ecx, dword [esp + 0x18]
push ebx
push 1
push ecx
push 0x32
mov eax, esi
call fcn.10089860
add esp, 0x10
test eax, eax
jg 0x1008573f
jne 0x10085c81
mov ecx, dword [esp + 0x4c]
inc ecx
cmp ecx, 0x1000
mov dword [esp + 0x4c], ecx
jge 0x10085268
jmp 0x10085480
test ebx, ebx
je 0x1008576c
mov eax, dword [ebx]
sub eax, 1
je 0x10085868
sub eax, 1
jne 0x10085c81
mov edx, dword [ebx + 8]
push ebx
push 1
push 2
call edx
add esp, 0xc
test eax, eax
je 0x10085c81
mov edx, dword [esp + 0x20]
push 0x100f7b0c
push esi
push edx
call fcn.1003bbc0
add esp, 0xc
test eax, eax
je 0x10085c81
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push 0
push eax
call fcn.1006a730
add esp, 0x14
test eax, eax
je 0x10085c81
mov edi, dword [esp + 0x20]
push 2
call fcn.100244f0
add esp, 4
test eax, eax
je 0x10085c81
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x18]
push ecx
push edx
call fcn.100785c0
add esp, 8
test eax, eax
je 0x10085c81
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
push eax
mov ecx, ebx
mov ebx, dword [esp + 0x28]
push ecx
push ebx
push edi
push esi
push edx
call fcn.100771d0
add esp, 0x18
test eax, eax
je 0x10085c81
lea ecx, [ecx]
mov eax, dword [esp + 0x2c]
mov edx, 1
cmp dword [eax + 4], edx
jne 0x10085885
mov ecx, dword [eax]
cmp dword [ecx], edx
jne 0x10085885
cmp dword [eax + 0xc], 0
jne 0x10085885
push 0x100f7b0c
push esi
push esi
call fcn.1003b8c0
add esp, 0xc
test eax, eax
je 0x10085c81
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
inc dword [esp + 0x54]
push edx
push eax
push ebx
push edi
push esi
push ecx
call fcn.100771d0
add esp, 0x18
test eax, eax
jne 0x10085810
jmp 0x10085c81
mov eax, dword [ebx + 8]
test eax, eax
je 0x1008576c
mov ecx, dword [ebx + 4]
push ecx
push 1
push 2
call eax
add esp, 0xc
jmp 0x1008576c
mov eax, dword [esp + 0x58]
mov esi, 3
call fcn.10089550
test eax, eax
je 0x10085c81
mov edx, dword [esp + 0x30]
mov esi, dword [edx + 0xc]
mov dword [esp + 0x44], 1
lea ebx, [ebx]
test esi, esi
je 0x10085926
mov edi, dword [esi]
test edi, edi
je 0x100858ed
test byte [esi + 0x10], 2
jne 0x100858ed
mov eax, dword [0x10114e28]
test eax, eax
je 0x100858d1
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x1010f130]
mov eax, dword [0x10114e28]
add esp, 4
test eax, eax
je 0x100858f2
push 1
push 0
call eax
add esp, 8
mov eax, dword [0x10114e28]
mov ecx, dword [esi + 0x10]
test cl, 1
je 0x100859aa
test eax, eax
je 0x1008590a
push 0
push esi
call eax
add esp, 8
push esi
call dword [0x1010f130]
mov eax, dword [0x10114e28]
add esp, 4
test eax, eax
je 0x1008592b
push 1
push 0
call eax
add esp, 8
mov eax, dword [0x10114e28]
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx + 0x10]
test esi, esi
je 0x100859cd
mov edi, dword [esi]
test edi, edi
je 0x10085973
test byte [esi + 0x10], 2
jne 0x10085973
test eax, eax
je 0x10085952
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x1010f130]
mov eax, dword [0x10114e28]
add esp, 4
test eax, eax
je 0x10085973
push 1
push 0
call eax
mov eax, dword [0x10114e28]
add esp, 8
mov ecx, dword [esi + 0x10]
test cl, 1
je 0x100859be
test eax, eax
je 0x10085987
push 0
push esi
call eax
add esp, 8
push esi
call dword [0x1010f130]
mov eax, dword [0x10114e28]
add esp, 4
test eax, eax
je 0x100859cd
push 1
push 0
call eax
mov eax, dword [0x10114e28]
add esp, 8
jmp 0x100859cd
or ecx, 0x8000
mov dword [esi + 0x10], ecx
mov dword [esi], 0
jmp 0x1008592b
or ecx, 0x8000
mov dword [esi + 0x10], ecx
mov dword [esi], 0
mov edx, dword [esp + 0x30]
mov esi, dword [edx + 0x14]
test esi, esi
je 0x10085a56
mov edi, dword [esi]
test edi, edi
je 0x10085a15
test byte [esi + 0x10], 2
jne 0x10085a15
test eax, eax
je 0x100859f4
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x1010f130]
mov eax, dword [0x10114e28]
add esp, 4
test eax, eax
je 0x10085a15
push 1
push 0
call eax
mov eax, dword [0x10114e28]
add esp, 8
mov ecx, dword [esi + 0x10]
test cl, 1
je 0x10085a47
test eax, eax
je 0x10085a29
push 0
push esi
call eax
add esp, 8
push esi
call dword [0x1010f130]
mov eax, dword [0x10114e28]
add esp, 4
test eax, eax
je 0x10085a56
push 1
push 0
call eax
add esp, 8
jmp 0x10085a56
or ecx, 0x8000
mov dword [esi + 0x10], ecx
mov dword [esi], 0
test ebx, ebx
je 0x10085afe
call fcn.10024220
mov esi, eax
test esi, esi
je 0x10085afe
push ebx
push esi
call fcn.10024440
add esp, 8
test eax, eax
jne 0x10085b00
mov edi, dword [esi]
test edi, edi
je 0x10085ab9
test byte [esi + 0x10], 2
jne 0x10085ab9
mov eax, dword [0x10114e28]
test eax, eax
je 0x10085a9c
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x1010f130]
mov ecx, dword [0x10114e28]
add esp, 4
test ecx, ecx
je 0x10085abf
push 1
push 0
call ecx
add esp, 8
mov ecx, dword [0x10114e28]
mov eax, dword [esi + 0x10]
test al, 1
je 0x10085af0
test ecx, ecx
je 0x10085ad2
push 0
push esi
call ecx
add esp, 8
push esi
call dword [0x1010f130]
mov eax, dword [0x10114e28]
add esp, 4
test eax, eax
je 0x10085afe
push 1
push 0
call eax
add esp, 8
jmp 0x10085afe
or eax, 0x8000
mov dword [esi + 0x10], eax
mov dword [esi], 0
xor esi, esi
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
mov dword [ebx + 0xc], esi
test edi, edi
je 0x10085bb3
call fcn.10024220
mov esi, eax
test esi, esi
je 0x10085bb3
push edi
push esi
call fcn.10024440
add esp, 8
test eax, eax
jne 0x10085bb5
mov edi, dword [esi]
test edi, edi
je 0x10085b6e
test byte [esi + 0x10], 2
jne 0x10085b6e
mov eax, dword [0x10114e28]
test eax, eax
je 0x10085b51
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x1010f130]
mov ecx, dword [0x10114e28]
add esp, 4
test ecx, ecx
je 0x10085b74
push 1
push 0
call ecx
add esp, 8
mov ecx, dword [0x10114e28]
mov eax, dword [esi + 0x10]
test al, 1
je 0x10085ba5
test ecx, ecx
je 0x10085b87
push 0
push esi
call ecx
add esp, 8
push esi
call dword [0x1010f130]
mov eax, dword [0x10114e28]
add esp, 4
test eax, eax
je 0x10085bb3
push 1
push 0
call eax
add esp, 8
jmp 0x10085bb3
or eax, 0x8000
mov dword [esi + 0x10], eax
mov dword [esi], 0
xor esi, esi
mov edi, dword [esp + 0x2c]
mov dword [ebx + 0x10], esi
test edi, edi
je 0x10085c64
call fcn.10024220
mov esi, eax
test esi, esi
je 0x10085c64
push edi
push esi
call fcn.10024440
add esp, 8
test eax, eax
jne 0x10085c66
mov edi, dword [esi]
test edi, edi
je 0x10085c1f
test byte [esi + 0x10], 2
jne 0x10085c1f
mov eax, dword [0x10114e28]
test eax, eax
je 0x10085c02
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x1010f130]
mov ecx, dword [0x10114e28]
add esp, 4
test ecx, ecx
je 0x10085c25
push 1
push 0
call ecx
add esp, 8
mov ecx, dword [0x10114e28]
mov eax, dword [esi + 0x10]
test al, 1
je 0x10085c56
test ecx, ecx
je 0x10085c38
push 0
push esi
call ecx
add esp, 8
push esi
call dword [0x1010f130]
mov eax, dword [0x10114e28]
add esp, 4
test eax, eax
je 0x10085c64
push 1
push 0
call eax
add esp, 8
jmp 0x10085c64
or eax, 0x8000
mov dword [esi + 0x10], eax
mov dword [esi], 0
xor esi, esi
cmp dword [ebx + 0xc], 0
mov dword [ebx + 0x14], esi
je 0x10085c79
cmp dword [ebx + 0x10], 0
je 0x10085c79
test esi, esi
jne 0x10085c81
mov dword [esp + 0x44], 0
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x24]
test eax, eax
je 0x10085c92
dec eax
mov dword [edi + 0x24], eax
jmp 0x10085ce7
dec dword [edi + 0x18]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
mov esi, dword [ecx + eax*4]
mov eax, dword [edi + 0x20]
cmp esi, eax
jae 0x10085cdd
mov ecx, dword [edi + 0xc]
sub eax, esi
mov edx, eax
lea eax, [ecx - 1]
sub ecx, edx
and eax, 0xf
mov dword [edi + 0xc], ecx
test edx, edx
je 0x10085cdd
jmp 0x10085cc0
dec edx
test eax, eax
jne 0x10085cd8
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 0x140]
mov eax, 0xf
mov dword [edi + 4], ecx
jmp 0x10085cd9
dec eax
test edx, edx
jne 0x10085cc0
mov dword [edi + 0x20], esi
mov dword [edi + 0x28], 0
mov eax, edi
call fcn.10033de0
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x10085ece
lea esi, [ebx + 4]
test esi, esi
je 0x10085d73
mov edi, dword [esi]
test edi, edi
je 0x10085d3a
test byte [esi + 0x10], 2
jne 0x10085d3a
mov eax, dword [0x10114e28]
test eax, eax
je 0x10085d1e
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x1010f130]
mov eax, dword [0x10114e28]
add esp, 4
test eax, eax
je 0x10085d3f
push 1
push 0
call eax
add esp, 8
mov eax, dword [0x10114e28]
mov ecx, dword [esi + 0x10]
test cl, 1
je 0x10085df3
test eax, eax
je 0x10085d57
push 0
push esi
call eax
add esp, 8
push esi
call dword [0x1010f130]
mov eax, dword [0x10114e28]
add esp, 4
test eax, eax
je 0x10085d78
push 1
push 0
call eax
add esp, 8
mov eax, dword [0x10114e28]
lea esi, [ebx + 0x18]
test esi, esi
je 0x10085e16
mov edi, dword [esi]
test edi, edi
je 0x10085dbc
test byte [esi + 0x10], 2
jne 0x10085dbc
test eax, eax
je 0x10085d9b
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x1010f130]
mov eax, dword [0x10114e28]
add esp, 4
test eax, eax
je 0x10085dbc
push 1
push 0
call eax
mov eax, dword [0x10114e28]
add esp, 8
mov ecx, dword [esi + 0x10]
test cl, 1
je 0x10085e07
test eax, eax
je 0x10085dd0
push 0
push esi
call eax
add esp, 8
push esi
call dword [0x1010f130]
mov eax, dword [0x10114e28]
add esp, 4
test eax, eax
je 0x10085e16
push 1
push 0
call eax
mov eax, dword [0x10114e28]
add esp, 8
jmp 0x10085e16
or ecx, 0x8000
mov dword [esi + 0x10], ecx
mov dword [esi], 0
jmp 0x10085d78
or ecx, 0x8000
mov dword [esi + 0x10], ecx
mov dword [esi], 0
lea esi, [ebx + 0x2c]
test esi, esi
je 0x10085ea0
mov edi, dword [esi]
test edi, edi
je 0x10085e5a
test byte [esi + 0x10], 2
jne 0x10085e5a
test eax, eax
je 0x10085e39
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x1010f130]
mov eax, dword [0x10114e28]
add esp, 4
test eax, eax
je 0x10085e5a
push 1
push 0
call eax
mov eax, dword [0x10114e28]
add esp, 8
mov ecx, dword [esi + 0x10]
test cl, 1
je 0x10085e91
test eax, eax
je 0x10085e6e
push 0
push esi
call eax
add esp, 8
push esi
call dword [0x1010f130]
mov eax, dword [0x10114e28]
add esp, 4
test eax, eax
je 0x10085ea0
push 1
push 0
call eax
mov eax, dword [0x10114e28]
add esp, 8
jmp 0x10085ea0
or ecx, 0x8000
mov dword [esi + 0x10], ecx
mov dword [esi], 0
test byte [ebx + 0x48], 1
je 0x10085ece
test eax, eax
je 0x10085eb2
push 0
push ebx
call eax
add esp, 8
push ebx
call dword [0x1010f130]
mov eax, dword [0x10114e28]
add esp, 4
test eax, eax
je 0x10085ece
push 1
push 0
call eax
add esp, 8
mov ecx, dword [esp + 0xdc]
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100ae60d
mov esp, ebp
pop ebp
ret