Function at 0x10006230
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [ebx + 0x58]
push esi
mov esi, dword [ebx + 0x54]
push edi
xor edi, edi
push ebx
mov dword [esi + 0x1f3e8], edi
mov dword [esi + 0x1f3ec], edi
mov dword [esi + 0x1f3f0], edi
mov dword [esi + 0x1f3e0], edi
mov dword [esi + 0x1f310], edi
mov dword [esi + 0x1f85c], eax
call fcn.100060a0
mov eax, dword [esi + 0x1f330]
add esp, 4
cmp eax, 2
jne 0x10006289
cmp dword [esp + 0x2c], edi
je 0x10006f01
xor eax, eax
mov ecx, 0x65
lea edi, [esi + 0x1f528]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x1f2ec]
test eax, eax
jne 0x10006c3b
mov eax, dword [esi + 0x1f200]
test eax, eax
jne 0x100065a0
mov eax, dword [esp + 0x20]
mov edi, dword [eax + 0x54]
mov ebx, dword [eax + 0x58]
mov eax, dword [edi + 0x1f330]
cmp eax, 1
je 0x10006380
cmp eax, 3
je 0x10006380
test eax, eax
jne 0x10006332
lea ebx, [ebx]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1001c1b0
add esp, 4
test eax, eax
je 0x100062f7
inc dword [edi + 0x1f3e8]
push 0
push 0x17
push ebx
call fcn.10019570
add esp, 0xc
test eax, eax
je 0x100063cb
push edi
push ebx
call fcn.10019220
add esp, 8
cmp eax, 1
je 0x100063cb
mov edx, dword [edi + 0x1f3e8]
cmp edx, dword [edi + 0x1f3d0]
jl 0x100062e0
jmp 0x100063cb
mov eax, dword [esp + 0x20]
push eax
call fcn.1001e250
add esp, 4
test eax, eax
je 0x10006349
inc dword [edi + 0x1f3e8]
push 0
push 0x17
push ebx
call fcn.10019570
add esp, 0xc
test eax, eax
je 0x100063cb
push edi
push ebx
call fcn.10019220
add esp, 8
cmp eax, 1
je 0x100063cb
mov ecx, dword [edi + 0x1f3e8]
cmp ecx, dword [edi + 0x1f3d0]
jl 0x10006332
jmp 0x100063cb
mov edx, dword [esp + 0x20]
push edx
call fcn.1001ce40
add esp, 4
test eax, eax
je 0x10006397
inc dword [edi + 0x1f3e8]
push ebx
call fcn.100196c0
add esp, 4
test eax, eax
jne 0x100063cb
mov eax, dword [edi + 0x1f1fc]
test eax, eax
jne 0x100063bd
push edi
push ebx
call fcn.10019220
add esp, 8
cmp eax, 1
je 0x100063cb
mov eax, dword [edi + 0x1f3e8]
cmp eax, dword [edi + 0x1f3d0]
jl 0x10006380
mov eax, dword [esi + 0x1f3e0]
inc eax
push esi
push ebp
mov dword [esi + 0x1f3e0], eax
call fcn.10019220
add esp, 8
cmp eax, 1
jne 0x10006957
nop
lea esp, [esp]
push esi
push ebp
call fcn.10018940
mov eax, dword [esi + 0x1f394]
mov edi, dword [esi + 0x1f3d4]
cdq
idiv edi
add esp, 8
test eax, eax
je 0x10006438
xor ecx, ecx
inc edi
test edi, edi
jle 0x10006438
mov edi, dword [esi + 0x1f4b0]
mov ebx, dword [esi + 0x1f488]
imul edi, eax
add edi, ecx
mov dword [ebx + edi*4], 0xfffffffe
mov edi, dword [esi + 0x1f3d4]
inc ecx
inc edi
cmp ecx, edi
jl 0x10006414
test edx, edx
je 0x10006461
xor ecx, ecx
inc edx
test edx, edx
jle 0x10006461
inc eax
mov edi, dword [esi + 0x1f4b0]
mov ebx, dword [esi + 0x1f488]
imul edi, eax
add edi, ecx
inc ecx
cmp ecx, edx
mov dword [ebx + edi*4], 0xfffffffe
jl 0x10006444
mov eax, dword [esp + 0x20]
mov dword [esi + 0x1f908], 1
mov edi, dword [eax + 0x54]
mov ebx, dword [eax + 0x58]
mov eax, dword [edi + 0x1f330]
cmp eax, 1
je 0x10006530
cmp eax, 3
je 0x10006530
test eax, eax
jne 0x100064e3
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1001c1b0
add esp, 4
test eax, eax
je 0x100064a8
inc dword [edi + 0x1f3e8]
push 0
push 0x17
push ebx
call fcn.10019570
add esp, 0xc
test eax, eax
je 0x1000657b
push edi
push ebx
call fcn.10019220
add esp, 8
cmp eax, 1
je 0x1000657b
mov edx, dword [edi + 0x1f3e8]
cmp edx, dword [edi + 0x1f3d0]
jl 0x10006491
jmp 0x1000657b
mov eax, dword [esp + 0x20]
push eax
call fcn.1001e250
add esp, 4
test eax, eax
je 0x100064fa
inc dword [edi + 0x1f3e8]
push 0
push 0x17
push ebx
call fcn.10019570
add esp, 0xc
test eax, eax
je 0x1000657b
push edi
push ebx
call fcn.10019220
add esp, 8
cmp eax, 1
je 0x1000657b
mov ecx, dword [edi + 0x1f3e8]
cmp ecx, dword [edi + 0x1f3d0]
jl 0x100064e3
jmp 0x1000657b
mov edx, dword [esp + 0x20]
push edx
call fcn.1001ce40
add esp, 4
test eax, eax
je 0x10006547
inc dword [edi + 0x1f3e8]
push ebx
call fcn.100196c0
add esp, 4
test eax, eax
jne 0x1000657b
mov eax, dword [edi + 0x1f1fc]
test eax, eax
jne 0x1000656d
push edi
push ebx
call fcn.10019220
add esp, 8
cmp eax, 1
je 0x1000657b
mov eax, dword [edi + 0x1f3e8]
cmp eax, dword [edi + 0x1f3d0]
jl 0x10006530
mov eax, dword [esi + 0x1f3e0]
inc eax
push esi
push ebp
mov dword [esi + 0x1f3e0], eax
call fcn.10019220
add esp, 8
cmp eax, 1
je 0x100063f0
jmp 0x10006957
mov edi, dword [ebx + 0x54]
mov eax, dword [edi + 0x1f330]
test eax, eax
jne 0x100065b8
push ebx
call fcn.1001f000
jmp 0x100067e0
cmp eax, 1
je 0x100067da
cmp eax, 3
je 0x100067da
cmp eax, 2
jne 0x100067eb
mov eax, dword [edi + 0x1f330]
cmp eax, 1
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x58]
je 0x10006782
cmp eax, 3
je 0x10006782
test eax, eax
jne 0x10006730
lea ebx, [ebx]
mov edx, dword [esp + 0x20]
push edx
call fcn.1001c1b0
add esp, 4
test eax, eax
je 0x10006617
inc dword [edi + 0x1f3e8]
push 0
push 0x17
push ebx
call fcn.10019570
add esp, 0xc
test eax, eax
je 0x10006645
push edi
push ebx
call fcn.10019220
add esp, 8
cmp eax, 1
je 0x10006645
mov eax, dword [edi + 0x1f3e8]
cmp eax, dword [edi + 0x1f3d0]
jl 0x10006600
mov dword [esi + 0x1f90c], 0
mov eax, dword [esi + 0x1f3e0]
inc eax
push esi
push ebp
mov dword [esi + 0x1f3e0], eax
call fcn.10019220
add esp, 8
cmp eax, 1
jne 0x10006957
nop
push esi
push ebp
call fcn.10018940
add esp, 8
test eax, eax
jne 0x10006f01
cmp dword [esi + 0x1f90c], 1
mov eax, dword [esi + 0x1f394]
je 0x10006699
cmp eax, dword [esi + 0x1f3e8]
je 0x1000669f
mov dword [esi + 0x1f3e8], eax
mov edi, dword [esi + 0x1f3d4]
cdq
idiv edi
test eax, eax
je 0x100066d7
xor ecx, ecx
inc edi
test edi, edi
jle 0x100066d7
mov edi, dword [esi + 0x1f4b0]
mov ebx, dword [esi + 0x1f488]
imul edi, eax
add edi, ecx
mov dword [ebx + edi*4], 0xfffffffe
mov edi, dword [esi + 0x1f3d4]
inc ecx
inc edi
cmp ecx, edi
jl 0x100066b3
test edx, edx
je 0x10006700
xor ecx, ecx
inc edx
test edx, edx
jle 0x10006700
inc eax
mov edi, dword [esi + 0x1f4b0]
mov ebx, dword [esi + 0x1f488]
imul edi, eax
add edi, ecx
inc ecx
cmp ecx, edx
mov dword [ebx + edi*4], 0xfffffffe
jl 0x100066e3
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x1f908], 1
mov edi, dword [ecx + 0x54]
mov eax, dword [edi + 0x1f330]
test eax, eax
jne 0x100068a6
push ecx
call fcn.1001f000
jmp 0x10006ae2
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1001e250
add esp, 4
test eax, eax
je 0x10006747
inc dword [edi + 0x1f3e8]
push 0
push 0x17
push ebx
call fcn.10019570
add esp, 0xc
test eax, eax
je 0x10006645
push edi
push ebx
call fcn.10019220
add esp, 8
cmp eax, 1
je 0x10006645
mov edx, dword [edi + 0x1f3e8]
cmp edx, dword [edi + 0x1f3d0]
jl 0x10006730
jmp 0x10006645
mov eax, dword [esp + 0x20]
push eax
call fcn.1001ce40
add esp, 4
test eax, eax
je 0x10006799
inc dword [edi + 0x1f3e8]
push ebx
call fcn.100196c0
add esp, 4
test eax, eax
jne 0x10006645
mov eax, dword [edi + 0x1f1fc]
test eax, eax
jne 0x100067c7
push edi
push ebx
call fcn.10019220
add esp, 8
cmp eax, 1
je 0x10006645
mov ecx, dword [edi + 0x1f3e8]
cmp ecx, dword [edi + 0x1f3d0]
jl 0x10006782
jmp 0x10006645
push ebx
call fcn.1001f610
add esp, 4
test eax, eax
jne 0x10006645
push esi
push ebp
call fcn.10019220
add esp, 8
cmp eax, 1
je 0x10006883
mov ebx, 0xffffffe0
mov edi, 4
mov edx, dword [ebp + 0x888]
mov eax, dword [ebp + 0x8b0]
mov ecx, dword [ebp + 0x88c]
add edx, eax
cmp edx, ecx
jbe 0x10006883
mov edx, dword [ebp + 0x8a4]
inc edx
mov eax, edx
cmp eax, 0x20
mov dword [ebp + 0x8a4], edx
jl 0x10006874
mov edx, dword [ebp + 0x8ac]
lea eax, [ebp + 0x8ac]
mov dword [ebp + 0x8a8], edx
mov ecx, dword [ecx]
mov dword [esp + 0x14], eax
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
bswap eax
mov dword [ecx], eax
mov ecx, dword [ebp + 0x88c]
mov eax, dword [ebp + 0x8a4]
add ecx, edi
add eax, ebx
mov dword [ebp + 0x88c], ecx
mov dword [ebp + 0x8a4], eax
push esi
push ebp
call fcn.10019220
add esp, 8
cmp eax, 1
jne 0x10006808
xor eax, eax
mov dword [esi + 0x1f90c], 1
mov dword [esi + 0x1f3ec], eax
mov dword [esi + 0x1f3f0], eax
mov dword [esi + 0x1f3e8], eax
jmp 0x1000664f
cmp eax, 1
je 0x10006adc
cmp eax, 3
je 0x10006adc
cmp eax, 2
jne 0x10006aed
mov eax, dword [edi + 0x1f330]
cmp eax, 1
mov edx, dword [esp + 0x20]
mov ebx, dword [edx + 0x58]
je 0x10006a84
cmp eax, 3
je 0x10006a84
test eax, eax
jne 0x10006a32
mov eax, dword [esp + 0x20]
push eax
call fcn.1001c1b0
add esp, 4
test eax, eax
je 0x100068ff
inc dword [edi + 0x1f3e8]
push 0
push 0x17
push ebx
call fcn.10019570
add esp, 0xc
test eax, eax
je 0x1000692d
push edi
push ebx
call fcn.10019220
add esp, 8
cmp eax, 1
je 0x1000692d
mov ecx, dword [edi + 0x1f3e8]
cmp ecx, dword [edi + 0x1f3d0]
jl 0x100068e8
mov dword [esi + 0x1f90c], 0
mov eax, dword [esi + 0x1f3e0]
inc eax
push esi
push ebp
mov dword [esi + 0x1f3e0], eax
call fcn.10019220
add esp, 8
cmp eax, 1
je 0x10006670
mov eax, dword [esi + 0x1f330]
mov edi, 2
cmp eax, edi
jne 0x10006981
mov edx, dword [esp + 0x20]
push edx
call fcn.1001eb00
mov eax, dword [esi + 0x1f330]
add esp, 4
cmp eax, edi
je 0x10006cee
mov eax, dword [esi + 0x1f79c]
cmp eax, 0x1f4
jge 0x10006bae
test eax, eax
je 0x10006bae
cmp eax, 0x137
je 0x10006bae
mov eax, dword [esi + 0x1f728]
mov ecx, dword [esi + 0x1f714]
mov edx, dword [esi + 0x1f710]
push 0x10
push eax
mov eax, dword [esi + 0x1f4ec]
push ecx
mov ecx, dword [eax]
push edx
push ecx
call fcn.100078b0
mov edx, dword [esi + 0x1f730]
mov eax, dword [esi + 0x1f714]
push 8
push edx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 0x1f710]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 0x1f4ec]
mov ecx, dword [eax + 4]
push ecx
call fcn.100078b0
mov edx, dword [esi + 0x1f730]
mov eax, dword [esi + 0x1f714]
push 8
push edx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 0x1f710]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 0x1f4ec]
mov ecx, dword [eax + 8]
push ecx
call fcn.100078b0
add esp, 0x3c
jmp 0x10006cee
mov edx, dword [esp + 0x20]
push edx
call fcn.1001e250
add esp, 4
test eax, eax
je 0x10006a49
inc dword [edi + 0x1f3e8]
push 0
push 0x17
push ebx
call fcn.10019570
add esp, 0xc
test eax, eax
je 0x1000692d
push edi
push ebx
call fcn.10019220
add esp, 8
cmp eax, 1
je 0x1000692d
mov eax, dword [edi + 0x1f3e8]
cmp eax, dword [edi + 0x1f3d0]
jl 0x10006a32
jmp 0x1000692d
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1001ce40
add esp, 4
test eax, eax
je 0x10006a9b
inc dword [edi + 0x1f3e8]
push ebx
call fcn.100196c0
add esp, 4
test eax, eax
jne 0x1000692d
mov eax, dword [edi + 0x1f1fc]
test eax, eax
jne 0x10006ac9
push edi
push ebx
call fcn.10019220
add esp, 8
cmp eax, 1
je 0x1000692d
mov edx, dword [edi + 0x1f3e8]
cmp edx, dword [edi + 0x1f3d0]
jl 0x10006a84
jmp 0x1000692d
push ecx
call fcn.1001f610
add esp, 4
test eax, eax
jne 0x1000692d
push esi
push ebp
call fcn.10019220
add esp, 8
cmp eax, 1
je 0x10006b8b
mov ebx, 4
mov edi, 0xffffffe0
lea ebx, [ebx]
mov eax, dword [ebp + 0x888]
mov edx, dword [ebp + 0x8b0]
mov ecx, dword [ebp + 0x88c]
add eax, edx
cmp eax, ecx
jbe 0x10006b8b
mov edx, dword [ebp + 0x8a4]
inc edx
mov eax, edx
cmp eax, 0x20
mov dword [ebp + 0x8a4], edx
jl 0x10006b7c
mov edx, dword [ebp + 0x8ac]
lea eax, [ebp + 0x8ac]
mov dword [ebp + 0x8a8], edx
mov ecx, dword [ecx]
mov dword [esp + 0x14], eax
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
bswap eax
mov dword [ecx], eax
mov ecx, dword [ebp + 0x88c]
mov eax, dword [ebp + 0x8a4]
add ecx, ebx
add eax, edi
mov dword [ebp + 0x88c], ecx
mov dword [ebp + 0x8a4], eax
push esi
push ebp
call fcn.10019220
add esp, 8
cmp eax, 1
jne 0x10006b10
xor eax, eax
mov dword [esi + 0x1f90c], 1
mov dword [esi + 0x1f3ec], eax
mov dword [esi + 0x1f3f0], eax
mov dword [esi + 0x1f3e8], eax
jmp 0x10006937
mov edx, dword [esi + 0x1f728]
mov eax, dword [esi + 0x1f714]
mov ecx, dword [esi + 0x1f710]
push 0x10
push edx
mov edx, dword [esi + 0x1f4ec]
push eax
mov eax, dword [edx]
push ecx
push eax
call fcn.100046a0
mov eax, dword [esi + 0x1f714]
mov ecx, dword [esi + 0x1f730]
cdq
sub eax, edx
sar eax, 1
push 8
push ecx
push eax
mov eax, dword [esi + 0x1f710]
cdq
sub eax, edx
mov edx, dword [esi + 0x1f4ec]
sar eax, 1
push eax
mov eax, dword [edx + 4]
push eax
call fcn.100046a0
mov eax, dword [esi + 0x1f714]
mov ecx, dword [esi + 0x1f730]
cdq
sub eax, edx
sar eax, 1
push 8
push ecx
push eax
mov eax, dword [esi + 0x1f710]
cdq
sub eax, edx
mov edx, dword [esi + 0x1f4ec]
sar eax, 1
push eax
mov eax, dword [edx + 8]
push eax
call fcn.100046a0
add esp, 0x3c
jmp 0x10006cee
mov eax, dword [esi + 0x1f3fc]
test eax, eax
mov dword [esp + 0x10], 0
jle 0x10006cee
jmp 0x10006c57
mov ebx, dword [esp + 0x20]
push ebx
call fcn.1001df00
mov eax, dword [esi + 0x1f3e8]
mov edi, dword [esi + 0x1f3d4]
cdq
idiv edi
add esp, 4
test eax, eax
je 0x10006ca4
xor ecx, ecx
inc edi
test edi, edi
jle 0x10006ca4
lea ebx, [ebx]
mov edi, dword [esi + 0x1f4b0]
mov ebx, dword [esi + 0x1f488]
imul edi, eax
add edi, ecx
mov dword [ebx + edi*4], 0xfffffffe
mov edi, dword [esi + 0x1f3d4]
inc ecx
inc edi
cmp ecx, edi
jl 0x10006c80
test edx, edx
je 0x10006ccd
xor ecx, ecx
inc edx
test edx, edx
jle 0x10006ccd
inc eax
mov edi, dword [esi + 0x1f4b0]
mov ebx, dword [esi + 0x1f488]
imul edi, eax
add edi, ecx
inc ecx
cmp ecx, edx
mov dword [ebx + edi*4], 0xfffffffe
jl 0x10006cb0
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x1f3fc]
inc eax
cmp eax, ecx
mov dword [esi + 0x1f908], 1
mov dword [esp + 0x10], eax
jl 0x10006c53
mov ecx, dword [ebp + 0x88c]
mov edi, dword [ebp + 0x8b0]
mov edx, dword [ebp + 0x888]
sub ecx, edi
sub ecx, edx
mov edx, dword [ebp + 0x8a4]
lea eax, [edx + ecx*8 - 0x40]
test eax, eax
jge 0x10006d14
neg eax
cmp eax, 0x20
jle 0x10006d53
mov eax, dword [esi + 0x1f860]
test eax, eax
jl 0x10006d44
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
pop edi
mov dword [esi + 0x1f860], ecx
mov dword [esi + 0x1f1a8], eax
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xc
ret
cmp eax, 0xffffffff
jne 0x10006d53
mov dword [esi + 0x1f1a8], 0xf
mov eax, dword [0x1006227c]
test eax, eax
je 0x10006eb2
mov eax, dword [esi + 0x1f330]
cmp eax, 1
je 0x10006d78
cmp eax, 3
je 0x10006d78
test eax, eax
jne 0x10006eb2
mov ecx, dword [esi + 0x1f4ec]
mov eax, dword [esi + 0x1f714]
mov dword [esp + 0x10], ecx
xor ecx, ecx
xor edi, edi
test eax, eax
jle 0x10006dce
mov ebx, dword [esi + 0x1f710]
test ebx, ebx
jle 0x10006dc3
mov eax, dword [esi + 0x1f728]
mov edx, dword [esp + 0x10]
imul eax, edi
add eax, dword [edx]
mov edx, ebx
nop
lea esp, [esp]
movzx ebp, byte [eax]
xor ecx, ebp
mov ebp, ecx
shr ebp, 0x1a
shl ecx, 6
or ecx, ebp
inc eax
dec edx
jne 0x10006db0
mov eax, dword [esi + 0x1f714]
inc edi
cmp edi, eax
jl 0x10006d96
mov eax, ecx
shr eax, 0x10
and ecx, 0xffff
xor eax, ecx
mov dword [0x10062280], eax
mov eax, dword [esi + 0x1f714]
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
xor ebx, ebx
xor edi, edi
test ebp, ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
jle 0x10006e42
mov eax, dword [esi + 0x1f710]
cdq
sub eax, edx
sar eax, 1
xor ecx, ecx
test eax, eax
jle 0x10006e39
mov edx, dword [esi + 0x1f730]
imul edx, ebx
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + 4]
add edx, ebx
movzx ebx, byte [edx + ecx]
xor edi, ebx
mov ebx, edi
shr ebx, 0x1a
shl edi, 6
or edi, ebx
inc ecx
cmp ecx, eax
jl 0x10006e20
mov ebx, dword [esp + 0x14]
inc ebx
cmp ebx, ebp
mov dword [esp + 0x14], ebx
jl 0x10006e08
xor ebx, ebx
xor ecx, ecx
test ebp, ebp
mov dword [esp + 0x14], ebx
jle 0x10006e9e
mov eax, dword [esi + 0x1f710]
cdq
sub eax, edx
sar eax, 1
lea esp, [esp]
xor edx, edx
test eax, eax
jle 0x10006e95
mov ebp, dword [esi + 0x1f730]
imul ebp, ebx
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + 8]
add ebx, ebp
movzx ebp, byte [ebx + edx]
xor ecx, ebp
mov ebp, ecx
shr ebp, 0x1a
shl ecx, 6
or ecx, ebp
inc edx
cmp edx, eax
jl 0x10006e78
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
inc ebx
cmp ebx, ebp
mov dword [esp + 0x14], ebx
jl 0x10006e60
xor ecx, edi
mov eax, ecx
shr eax, 0x10
and ecx, 0xffff
xor eax, ecx
mov dword [0x10062284], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10006ed2
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call dword [esi + 0x1f82c]
add esp, 0xc
cmp dword [esi + 0x1f330], 2
je 0x10006ef7
mov ecx, dword [esp + 0x20]
lea eax, [ecx + 0x30]
mov edx, 3
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov dword [eax + 0xc], edi
mov dword [eax], ecx
add eax, 4
dec edx
jne 0x10006ee7
mov dword [esi + 0x1f860], 0xfffffffe
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret