Function at 0x4be670
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov esi, dword [esp + 0x4c]
mov dword [esp + 8], edx
mov ebp, ecx
call fcn.00485cb0
mov ebx, dword [ebp + 0x38]
mov edx, dword [ebp + 0x28]
cmp dword [esp + 0x58], 0
mov edi, eax
mov dword [esp], ebp
lea eax, [ebx - 1]
mov dword [esp + 4], eax
mov dword [ebp + 0x38], eax
jns 0x4be701
mov ecx, dword [edi + 0x6c]
movzx eax, byte [esi + 0x18]
cmp dword [edi + 0x70], ecx
jle 0x4be6e3
mov esi, edx
lea edx, [ecx + 1]
mov ebp, dword [esp + 4]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x6c], edx
mov edx, dword [edi + 0x68]
mov dword [edx + ecx*4], 0x2f
mov dword [edx + ecx*4 + 4], eax
mov dword [edx + ecx*4 + 8], ebp
mov dword [edx + ecx*4 + 0xc], 0
mov dword [edx + ecx*4 + 0x10], 0
mov edx, esi
jmp 0x4be6fd
mov esi, edx
mov edx, 0x2f
mov ecx, edi
push 0
push dword [esp + 8]
push eax
call fcn.0046c600
mov edx, esi
add esp, 0xc
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esi + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
test ebx, ebx
jle 0x4be810
mov eax, dword [esp + 0x54]
xor ebp, ebp
inc eax
mov dword [esp + 0x1c], eax
jmp 0x4be76b
lea edx, [ecx + 1]
mov ebx, dword [esp + 4]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x6c], edx
mov edx, dword [edi + 0x68]
mov dword [edx + ecx*4], 0x32
mov dword [edx + ecx*4 + 4], eax
mov dword [edx + ecx*4 + 8], ebx
mov dword [edx + ecx*4 + 0xc], 0
mov dword [edx + ecx*4 + 0x10], 0
mov ebx, dword [esi + 0x14]
inc ebp
cmp ebp, ebx
jge 0x4be810
mov ecx, dword [esp + 0x50]
mov eax, dword [esi]
mov ecx, dword [ecx + ebp*4]
test byte [eax + 0x24], 0x20
je 0x4be7e2
test cx, cx
js 0x4be7e2
mov edi, dword [eax + 4]
movzx ebx, word [edi + 0x10]
and ebx, 0x20
test cx, cx
je 0x4be7c9
movsx esi, cx
mov ecx, 1
test esi, esi
cmovle esi, ecx
add edi, 0x24
xor ecx, ecx
mov edx, esi
nop word cs:[eax + eax]
nop dword [eax]
movzx ebx, bx
shr ebx, 5
xor ebx, 1
add ecx, ebx
movzx ebx, word [edi]
add edi, 0x14
and ebx, 0x20
dec edx
jne 0x4be7b0
jmp 0x4be7cd
xor esi, esi
xor ecx, ecx
mov edi, dword [esp + 0x18]
test bx, bx
je 0x4be7de
sub esi, ecx
add si, word [eax + 0x2c]
mov ecx, esi
mov esi, dword [esp + 0x4c]
movsx eax, cx
mov ecx, dword [edi + 0x6c]
add eax, dword [esp + 0x1c]
cmp dword [edi + 0x70], ecx
jg 0x4be730
mov ecx, edi
mov edx, 0x32
push 0
push dword [esp + 8]
push eax
call fcn.0046c600
add esp, 0xc
jmp 0x4be75f
dec dword [esp + 0x14]
cmp dword [esp + 0x5c], 0
mov ecx, dword [esp]
je 0x4be865
mov al, byte [esi + 0x18]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x2c]
test al, al
jne 0x4be8b9
mov eax, dword [ecx]
test byte [eax + 0x22], 8
jne 0x4be849
cmp dword [ecx + 0x74], 0
jne 0x4be849
cmp byte [ecx + 0x14], 0
je 0x4befe9
cmp dword [esp + 0x58], 0
jle 0x4be8b7
mov eax, dword [ecx + 0x74]
test eax, eax
cmove eax, ecx
mov byte [eax + 0x15], 1
mov eax, dword [esp + 0x4c]
mov al, byte [eax + 0x18]
jmp 0x4be8b9
cmp dword [esp + 0x48], 0
je 0x4be898
cmp ebx, 1
jne 0x4be983
mov al, byte [ecx + 0x13]
test al, al
je 0x4bea30
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov eax, dword [ecx + eax*4 + 0x94]
mov dword [esp + 0xc], eax
jmp 0x4bea3d
mov al, byte [ecx + 0x13]
test al, al
je 0x4be9bb
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov ebp, dword [ecx + eax*4 + 0x94]
jmp 0x4be9c2
xor eax, eax
mov ecx, dword [edi + 0x6c]
movzx eax, al
cmp dword [edi + 0x70], ecx
jle 0x4be8f5
lea edx, [ecx + 1]
mov ebp, dword [esp + 0x58]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x6c], edx
mov edx, dword [edi + 0x68]
mov dword [edx + ecx*4], 0x95
mov dword [edx + ecx*4 + 4], eax
mov dword [edx + ecx*4 + 8], ebp
mov dword [edx + ecx*4 + 0xc], 0
mov dword [edx + ecx*4 + 0x10], 0
jmp 0x4be90b
mov ecx, edi
mov edx, 0x95
push 0
push dword [esp + 0x5c]
push eax
call fcn.0046c600
add esp, 0xc
mov ecx, dword [edi + 0xc]
neg ebx
mov eax, dword [ecx + 0x38]
add eax, dword [ecx + 0x3c]
js 0x4be923
mov eax, dword [edi + 0x6c]
mov ecx, dword [ecx + 0x40]
mov dword [ecx + ebx*4], eax
jmp 0x4be92e
mov edx, edi
push ebx
call fcn.0048f970
add esp, 4
mov eax, dword [edi + 0x6c]
cmp dword [edi + 0x70], eax
jle 0x4be96a
lea ecx, [eax + 1]
lea eax, [eax + eax*4]
mov dword [edi + 0x6c], ecx
mov ecx, dword [edi + 0x68]
mov dword [ecx + eax*4], 0x74
mov dword [ecx + eax*4 + 4], esi
mov dword [ecx + eax*4 + 8], 0
mov dword [ecx + eax*4 + 0xc], 0
mov dword [ecx + eax*4 + 0x10], 0
add esp, 0x30
jmp 0x4be97e
mov ecx, edi
mov edx, 0x74
push 0
push 0
push esi
call fcn.0046c600
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ecx + 0x1c]
sub eax, ebx
jge 0x4be99e
mov eax, dword [ecx + 0x2c]
lea edx, [eax + 1]
add eax, ebx
mov dword [esp + 0xc], edx
mov dword [ecx + 0x2c], eax
jmp 0x4bea3d
mov edx, dword [ecx + 0x20]
mov esi, dword [esp]
mov ecx, edx
lea ecx, [edx + ebx]
mov dword [esp + 0xc], edx
mov dword [esi + 0x20], ecx
mov ecx, dword [esp]
mov dword [ecx + 0x1c], eax
jmp 0x4bea3d
mov ebp, dword [ecx + 0x2c]
inc ebp
mov dword [ecx + 0x2c], ebp
mov ecx, dword [esp + 0x50]
mov eax, dword [esi]
mov ecx, dword [ecx]
test byte [eax + 0x24], 0x20
je 0x4bf018
test cx, cx
js 0x4bf018
mov ebx, dword [eax + 4]
movzx esi, word [ebx + 0x10]
and esi, 0x20
test cx, cx
je 0x4bf003
movsx ecx, cx
mov edx, 1
test ecx, ecx
cmovg edx, ecx
add ebx, 0x24
xor ecx, ecx
mov edi, edx
nop word cs:[eax + eax]
nop
movzx esi, si
shr esi, 5
xor esi, 1
add ecx, esi
movzx esi, word [ebx]
add ebx, 0x14
and esi, 0x20
dec edi
jne 0x4bea10
mov edi, dword [esp + 0x18]
jmp 0x4bf007
mov edx, dword [ecx + 0x2c]
inc edx
mov eax, edx
mov dword [esp + 0xc], edx
mov dword [ecx + 0x2c], edx
mov al, byte [ecx + 0x13]
test al, al
je 0x4bea59
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov eax, dword [ecx + eax*4 + 0x94]
mov dword [esp + 0x10], eax
jmp 0x4bea64
mov eax, dword [ecx + 0x2c]
inc eax
mov dword [esp + 0x10], eax
mov dword [ecx + 0x2c], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [edi + 0x6c]
mov eax, dword [eax + 0x2c]
cmp dword [edi + 0x70], ecx
jle 0x4beaa4
lea edx, [ecx + 1]
mov esi, dword [esp + 0x14]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x6c], edx
mov edx, dword [edi + 0x68]
mov dword [edx + ecx*4], 0x60
mov dword [edx + ecx*4 + 4], esi
mov esi, dword [esp + 8]
mov dword [edx + ecx*4 + 8], eax
mov dword [edx + ecx*4 + 0xc], esi
mov dword [edx + ecx*4 + 0x10], 0
jmp 0x4beabc
mov ecx, edi
mov edx, 0x60
push dword [esp + 8]
push eax
push dword [esp + 0x1c]
call fcn.0046c600
add esp, 0xc
mov ecx, dword [esp]
mov edx, dword [esp + 0x48]
mov esi, dword [ecx + 8]
call fcn.00486590
test eax, eax
je 0x4beb02
mov ecx, dword [esi]
cmp byte [ecx + 0x51], 0
je 0x4beaf0
cmp dword [ecx + 0x1f8], 0
jne 0x4beb02
dec dword [eax]
jne 0x4beb02
mov ecx, dword [eax + 0xc]
mov edx, eax
call fcn.004352c0
jmp 0x4beb02
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x68]
lea edx, [edx + edx*4]
mov byte [ecx + edx*4 - 0x13], 0xf7
mov dword [ecx + edx*4 - 4], eax
mov eax, dword [esp + 0x4c]
test ebx, ebx
mov eax, dword [eax]
jle 0x4beded
mov ecx, dword [esp + 0x54]
xor esi, esi
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x4beb5f
lea edx, [ebp + 1]
mov dword [ecx + 0x6c], edx
mov edx, dword [ecx + 0x68]
lea ecx, [ebp + ebp*4]
mov dword [edx + ecx*4], 0x4d
mov dword [edx + ecx*4 + 4], eax
mov dword [edx + ecx*4 + 8], edi
mov dword [edx + ecx*4 + 0xc], 0
mov dword [edx + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x18]
inc esi
cmp esi, ebx
mov eax, dword [eax]
je 0x4bec0f
mov ecx, dword [esp + 0x50]
test byte [eax + 0x24], 0x20
mov ecx, dword [ecx + esi*4]
je 0x4bebd0
test cx, cx
js 0x4bebd0
mov edi, dword [eax + 4]
movzx ebp, word [edi + 0x10]
and ebp, 0x20
test cx, cx
je 0x4bec04
movsx edx, cx
mov ecx, 1
test edx, edx
cmovle edx, ecx
add edi, 0x24
xor ecx, ecx
mov dword [esp + 8], edx
nop word [eax + eax]
movzx ebp, bp
shr ebp, 5
xor ebp, 1
add ecx, ebp
movzx ebp, word [edi]
add edi, 0x14
and ebp, 0x20
dec edx
jne 0x4beba0
mov edx, dword [esp + 8]
test bp, bp
je 0x4bebd0
sub edx, ecx
add dx, word [eax + 0x2c]
mov ecx, edx
nop dword [eax + eax]
movsx eax, cx
mov ecx, dword [esp + 0xc]
add eax, dword [esp + 0x1c]
lea edi, [esi + ecx]
mov ecx, dword [esp + 0x18]
mov ebp, dword [ecx + 0x6c]
cmp dword [ecx + 0x70], ebp
jg 0x4beb20
mov edx, 0x4d
push 0
push edi
push eax
call fcn.0046c600
add esp, 0xc
jmp 0x4beb4c
xor edx, edx
xor ecx, ecx
test bp, bp
jne 0x4bebc0
jmp 0x4bebd0
cmp dword [esp + 0x58], 1
jne 0x4bee4e
cmp eax, dword [esp + 0x44]
jne 0x4bee4e
mov eax, dword [edi + 0x6c]
test ebx, ebx
jle 0x4bedfd
mov edx, dword [esp + 0x44]
lea eax, [ebx + eax + 1]
xor esi, esi
mov dword [esp + 0x28], eax
nop dword [eax]
mov eax, dword [esp + 0x50]
test byte [edx + 0x24], 0x20
mov ecx, dword [eax + esi*4]
je 0x4becc0
test cx, cx
js 0x4becc0
mov edi, dword [edx + 4]
movzx ebp, word [edi + 0x10]
and ebp, 0x20
test cx, cx
je 0x4bec9d
movsx eax, cx
mov ecx, 1
mov dword [esp + 8], edx
test eax, eax
cmovle eax, ecx
add edi, 0x24
xor ecx, ecx
mov edx, eax
nop dword [eax]
movzx ebp, bp
shr ebp, 5
xor ebp, 1
add ecx, ebp
movzx ebp, word [edi]
add edi, 0x14
and ebp, 0x20
dec edx
jne 0x4bec80
mov edx, dword [esp + 8]
jmp 0x4beca1
xor eax, eax
xor ecx, ecx
mov edi, dword [esp + 0x18]
test bp, bp
je 0x4becc0
sub eax, ecx
add ax, word [edx + 0x2c]
mov ecx, eax
nop word cs:[eax + eax]
nop dword [eax]
movsx eax, cx
mov ecx, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0xc]
movzx ecx, word [eax + esi*2]
test byte [edx + 0x24], 0x20
mov ebp, ecx
je 0x4bed50
test cx, cx
mov ebp, ecx
js 0x4bed50
mov edi, dword [edx + 4]
mov dword [esp + 0x20], edx
movzx edx, word [edi + 0x10]
and edx, 0x20
test cx, cx
je 0x4bed29
movsx ebp, cx
mov eax, 1
test ebp, ebp
cmovle ebp, eax
add edi, 0x24
mov eax, ebp
xor ebp, ebp
mov dword [esp + 0x24], eax
nop
movzx edx, dx
shr edx, 5
xor edx, 1
add ebp, edx
movzx edx, word [edi]
add edi, 0x14
and edx, 0x20
dec eax
jne 0x4bed10
jmp 0x4bed33
mov dword [esp + 0x24], 0
xor ebp, ebp
mov edi, dword [esp + 0x18]
test dx, dx
je 0x4bed50
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
sub edx, ebp
add dx, word [eax + 0x2c]
mov ebp, edx
nop dword [eax]
mov dword [esp + 0x20], esi
movsx eax, bp
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 8]
mov ebp, dword [esp + 0x44]
add esi, edx
add eax, edx
cmp cx, word [ebp + 0x28]
mov ecx, dword [edi + 0x6c]
cmove eax, dword [esp + 0x54]
cmp dword [edi + 0x70], ecx
jle 0x4bedb0
lea edx, [ecx + 1]
mov ebp, dword [esp + 0x28]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x6c], edx
mov edx, dword [edi + 0x68]
mov dword [edx + ecx*4], 0x34
mov dword [edx + ecx*4 + 4], esi
mov dword [edx + ecx*4 + 8], ebp
mov dword [edx + ecx*4 + 0xc], eax
mov dword [edx + ecx*4 + 0x10], 0
jmp 0x4bedc5
mov ecx, edi
mov edx, 0x34
push eax
push dword [esp + 0x2c]
push esi
call fcn.0046c600
add esp, 0xc
mov eax, dword [edi + 0x6c]
mov esi, dword [esp + 0x20]
test eax, eax
jle 0x4beddd
mov ecx, dword [edi + 0x68]
lea eax, [eax + eax*4]
mov word [ecx + eax*4 - 0x12], 0x10
inc esi
cmp esi, ebx
je 0x4bedfa
mov eax, dword [esp + 0x4c]
mov edx, dword [eax]
jmp 0x4bec40
cmp dword [esp + 0x58], 1
jne 0x4bee4e
cmp eax, dword [esp + 0x44]
jne 0x4bee4e
mov eax, dword [edi + 0x6c]
cmp dword [edi + 0x70], eax
jle 0x4bee37
lea ecx, [eax + 1]
mov edx, dword [esp + 4]
lea eax, [eax + eax*4]
mov dword [edi + 0x6c], ecx
mov ecx, dword [edi + 0x68]
mov dword [ecx + eax*4], 0xb
mov dword [ecx + eax*4 + 4], 0
mov dword [ecx + eax*4 + 8], edx
mov dword [ecx + eax*4 + 0xc], 0
mov dword [ecx + eax*4 + 0x10], 0
jmp 0x4bee4e
mov ecx, edi
mov edx, 0xb
push 0
push dword [esp + 8]
push 0
call fcn.0046c600
add esp, 0xc
mov eax, dword [esp]
mov edx, dword [esp + 0x48]
mov ecx, dword [eax]
call fcn.0049b140
mov ebp, eax
mov eax, dword [edi + 0x6c]
cmp dword [edi + 0x70], eax
jle 0x4bee97
lea ecx, [eax + 1]
mov esi, dword [esp + 0xc]
lea edx, [eax + eax*4]
mov dword [edi + 0x6c], ecx
mov ecx, dword [edi + 0x68]
mov dword [ecx + edx*4], 0x5b
mov dword [ecx + edx*4 + 4], esi
mov esi, dword [esp + 0x10]
mov dword [ecx + edx*4 + 8], ebx
mov dword [ecx + edx*4 + 0xc], esi
mov dword [ecx + edx*4 + 0x10], 0
jmp 0x4beeaf
mov ecx, edi
mov edx, 0x5b
push dword [esp + 0x10]
push ebx
push dword [esp + 0x14]
call fcn.0046c600
add esp, 0xc
mov ecx, dword [edi]
cmp byte [ecx + 0x51], 0
je 0x4beec9
cmp ebx, 0xfffffff4
je 0x4beef5
mov edx, ebx
push ebp
call fcn.00448c40
add esp, 4
jmp 0x4beef5
test eax, eax
jns 0x4beed1
mov eax, dword [edi + 0x6c]
dec eax
mov ecx, dword [edi + 0x68]
lea eax, [eax + eax*4]
test ebx, ebx
jns 0x4beee6
cmp byte [ecx + eax*4 + 1], 0
je 0x4bf273
lea edx, [ecx + eax*4]
mov ecx, edi
push ebx
push ebp
call fcn.0046c7f0
add esp, 8
mov eax, dword [edi + 0x6c]
cmp dword [edi + 0x70], eax
jle 0x4bef32
lea ecx, [eax + 1]
mov esi, dword [esp + 0x14]
lea edx, [eax + eax*4]
mov ebp, dword [esp + 0x10]
mov dword [edi + 0x6c], ecx
mov ecx, dword [edi + 0x68]
mov dword [ecx + edx*4], 0x1e
mov dword [ecx + edx*4 + 4], esi
mov esi, dword [esp + 4]
mov dword [ecx + edx*4 + 8], esi
mov dword [ecx + edx*4 + 0xc], ebp
mov dword [ecx + edx*4 + 0x10], 0
jmp 0x4bef4d
mov ecx, edi
mov edx, 0x1e
push dword [esp + 0x10]
push dword [esp + 8]
push dword [esp + 0x1c]
call fcn.0046c600
add esp, 0xc
mov ecx, dword [edi]
mov esi, dword [esp + 0x4c]
cmp byte [ecx + 0x51], 0
jne 0x4bef6c
mov ecx, dword [edi + 0x68]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 + 1], 0xfd
mov dword [ecx + eax*4 + 0x10], 0
cmp dword [esp + 0x10], 0
mov ecx, dword [esp]
je 0x4bef97
movzx eax, byte [ecx + 0x13]
cmp eax, 7
ja 0x4bef97
mov edx, dword [esp]
mov ecx, eax
mov ebp, dword [esp + 0x10]
inc cl
mov byte [edx + 0x13], cl
mov ecx, dword [esp]
mov dword [ecx + eax*4 + 0x94], ebp
cmp ebx, 1
jne 0x4befd1
cmp dword [esp + 0xc], 0
je 0x4be81e
movzx eax, byte [ecx + 0x13]
cmp eax, 7
ja 0x4be81e
mov edx, dword [esp]
mov ecx, eax
mov ebx, dword [esp + 0xc]
inc cl
mov byte [edx + 0x13], cl
mov ecx, dword [esp]
mov dword [ecx + eax*4 + 0x94], ebx
jmp 0x4be81e
cmp dword [ecx + 0x1c], ebx
jge 0x4be81e
mov eax, dword [esp + 0xc]
mov dword [ecx + 0x1c], ebx
mov dword [ecx + 0x20], eax
jmp 0x4be81e
mov edx, 0x313
push 4
push 0xffffffffffffffff
push 0
push 2
call fcn.0048bc50
add esp, 0x10
jmp 0x4be90b
xor edx, edx
xor ecx, ecx
test si, si
je 0x4bf014
sub edx, ecx
add dx, word [eax + 0x2c]
mov ecx, edx
mov esi, dword [esp + 0x4c]
movsx eax, cx
mov ecx, dword [esp + 0x54]
lea eax, [ecx + eax + 1]
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jle 0x4bf058
lea edx, [ecx + 1]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x6c], edx
mov edx, dword [edi + 0x68]
mov dword [edx + ecx*4], 0x4e
mov dword [edx + ecx*4 + 4], eax
mov dword [edx + ecx*4 + 8], ebp
mov dword [edx + ecx*4 + 0xc], 0
mov dword [edx + ecx*4 + 0x10], 0
jmp 0x4bf06b
mov ecx, edi
mov edx, 0x4e
push 0
push ebp
push eax
call fcn.0046c600
add esp, 0xc
mov ebx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ebx
jle 0x4bf0a4
lea eax, [ebx + 1]
lea ecx, [ebx + ebx*4]
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xf
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4bf0ba
mov ecx, edi
mov edx, 0xf
push 0
push 0
push ebp
call fcn.0046c600
add esp, 0xc
mov ebx, eax
cmp dword [esp + 0x58], 1
mov ecx, dword [esp]
jne 0x4bf13b
mov eax, dword [esp + 0x44]
cmp dword [esi], eax
jne 0x4bf13b
mov eax, dword [edi + 0x6c]
cmp dword [edi + 0x70], eax
jle 0x4bf108
lea ecx, [eax + 1]
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 4]
lea eax, [eax + eax*4]
mov dword [edi + 0x6c], ecx
mov ecx, dword [edi + 0x68]
mov dword [ecx + eax*4], 0x35
mov dword [ecx + eax*4 + 4], edx
mov dword [ecx + eax*4 + 8], esi
mov dword [ecx + eax*4 + 0xc], ebp
mov dword [ecx + eax*4 + 0x10], 0
mov ecx, dword [esp]
jmp 0x4bf124
mov ecx, edi
mov edx, 0x35
push ebp
push dword [esp + 8]
push dword [esp + 0x5c]
call fcn.0046c600
mov ecx, dword [esp + 0xc]
add esp, 0xc
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x4bf13b
mov ecx, dword [edi + 0x68]
lea eax, [eax + eax*4]
mov word [ecx + eax*4 - 0x12], 0x90
mov ecx, dword [esp]
mov esi, dword [esp + 0x14]
mov edx, esi
push 0x60
push dword [esp + 0x48]
push dword [esp + 0x10]
call fcn.00486200
add esp, 0xc
mov eax, dword [edi + 0x6c]
cmp dword [edi + 0x70], eax
jle 0x4bf188
lea ecx, [eax + 1]
lea eax, [eax + eax*4]
mov dword [edi + 0x6c], ecx
mov ecx, dword [edi + 0x68]
mov dword [ecx + eax*4], 0x20
mov dword [ecx + eax*4 + 4], esi
mov dword [ecx + eax*4 + 8], 0
mov dword [ecx + eax*4 + 0xc], ebp
mov dword [ecx + eax*4 + 0x10], 0
jmp 0x4bf19b
mov ecx, edi
mov edx, 0x20
push ebp
push 0
push esi
call fcn.0046c600
add esp, 0xc
mov eax, dword [edi + 0x6c]
mov esi, dword [esp + 0x4c]
cmp dword [edi + 0x70], eax
jle 0x4bf1dc
lea ecx, [eax + 1]
mov edx, dword [esp + 4]
lea eax, [eax + eax*4]
mov dword [edi + 0x6c], ecx
mov ecx, dword [edi + 0x68]
mov dword [ecx + eax*4], 0xb
mov dword [ecx + eax*4 + 4], 0
mov dword [ecx + eax*4 + 8], edx
mov dword [ecx + eax*4 + 0xc], 0
mov dword [ecx + eax*4 + 0x10], 0
jmp 0x4bf1f3
mov ecx, edi
mov edx, 0xb
push 0
push dword [esp + 8]
push 0
call fcn.0046c600
add esp, 0xc
mov edx, dword [edi]
mov ecx, dword [edi + 0x6c]
mov eax, 0x51ea94
cmp byte [edx + 0x51], 0
mov edx, 0x51ea94
jne 0x4bf220
xor edx, edx
cmp ecx, 2
mov esi, dword [edi + 0x68]
setl dl
add edx, ecx
lea edx, [edx + edx*4]
lea edx, [esi + edx*4 - 0x28]
mov esi, dword [esp + 0x4c]
mov dword [edx + 8], ecx
mov edx, dword [edi]
mov ecx, dword [edi + 0x6c]
cmp byte [edx + 0x51], 0
jne 0x4bf23f
lea eax, [ecx - 1]
test ebx, ebx
cmovns eax, ebx
lea eax, [eax + eax*4]
shl eax, 2
add eax, dword [edi + 0x68]
mov dword [eax + 8], ecx
mov ecx, dword [esp]
test ebp, ebp
je 0x4be81e
movzx eax, byte [ecx + 0x13]
cmp eax, 7
ja 0x4be81e
mov edx, dword [esp]
mov ecx, eax
inc cl
mov byte [edx + 0x13], cl
mov ecx, dword [esp]
mov dword [ecx + eax*4 + 0x94], ebp
jmp 0x4be81e
lea edx, [ecx + eax*4 + 1]
cmp ebx, 0xfffffffd
jne 0x4bf288
mov dword [ecx + eax*4 + 0x10], ebp
mov byte [edx], 0xfd
jmp 0x4beef5
test ebp, ebp
je 0x4beef5
cmp ebx, 0xfffffff4
mov dword [ecx + eax*4 + 0x10], ebp
mov byte [edx], bl
jne 0x4beef5
inc dword [ebp + 0xc]
jmp 0x4beef5