Function at 0x4bb870
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ecx + 0x38]
mov esi, dword [ecx + 8]
mov bl, byte [esp + 0x60]
mov ebp, dword [esp + 0x4c]
mov edi, edx
mov dword [esp + 4], ecx
mov dword [esp + 0x30], eax
dec eax
mov dword [ecx + 0x38], eax
mov dword [esp + 0x14], eax
xor eax, eax
cmp byte [edx + 0x24], 0
setns al
cmp byte [esp + 0x64], 0
lea eax, [eax + eax*2 + 0x1d]
mov dword [esp + 0x20], eax
jne 0x4bb92c
mov eax, dword [esi + 0x6c]
cmp dword [esi + 0x70], eax
jle 0x4bb8f8
lea ecx, [eax + 1]
mov ebx, dword [esp + 0x20]
lea edx, [eax + eax*4]
mov dword [esi + 0x6c], ecx
mov ecx, dword [esi + 0x68]
mov byte [ecx + edx*4], bl
mov word [ecx + edx*4 + 2], 0
mov dword [ecx + edx*4 + 4], ebp
mov ebp, dword [esp + 0x14]
mov bl, byte [esp + 0x60]
mov dword [ecx + edx*4 + 8], ebp
mov ebp, dword [esp + 0x54]
mov dword [ecx + edx*4 + 0xc], ebp
mov dword [ecx + edx*4 + 0x10], 0
mov byte [ecx + edx*4 + 1], 0
jmp 0x4bb910
movzx edx, byte [esp + 0x20]
mov ecx, esi
push dword [esp + 0x54]
push dword [esp + 0x18]
push ebp
call fcn.0046c600
add esp, 0xc
mov ecx, dword [esi]
cmp byte [ecx + 0x51], 0
jne 0x4bb92c
movsx ecx, word [esp + 0x58]
mov edx, dword [esi + 0x68]
lea eax, [eax + eax*4]
mov byte [edx + eax*4 + 1], 0xfd
mov dword [edx + eax*4 + 0x10], ecx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 4]
mov ebp, dword [esp + 0x48]
movzx edx, bl
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
mov ebx, ecx
test byte [eax + 0x21], 0x40
mov eax, 0
je 0x4bba48
mov esi, dword [edi + 0x48]
mov ecx, dword [edi]
mov edi, dword [esi + 0x44]
test edi, edi
je 0x4bb99c
mov bl, byte [ecx]
test bl, bl
je 0x4bb9a4
lea edx, [ecx + 1]
xor eax, eax
nop dword [eax]
movzx ebx, bl
movzx ebx, byte [ebx + 0x50ce7b]
add ebx, eax
imul eax, ebx, 0x9e3779b1
movzx ebx, byte [edx]
inc edx
test bl, bl
jne 0x4bb980
jmp 0x4bb9a6
lea eax, [esi + 0x40]
add esi, 0x3c
jmp 0x4bb9ba
xor eax, eax
xor edx, edx
div dword [esi + 0x38]
mov ebx, dword [esp + 4]
lea eax, [edi + edx*8 + 4]
lea esi, [edi + edx*8]
mov edx, dword [esp + 0x18]
mov esi, dword [esi]
mov edi, 0x51ea84
test esi, esi
je 0x4bba31
mov eax, dword [eax]
dec esi
xor ebx, ebx
mov edi, dword [eax + 0xc]
mov dword [esp], eax
jmp 0x4bb9f0
movzx edx, byte [edx + 0x50ce7b]
cmp dl, byte [eax + 0x50ce7b]
jne 0x4bba10
inc ebx
movzx edx, byte [edi + ebx]
movzx eax, byte [ecx + ebx]
cmp dl, al
jne 0x4bb9e0
test dl, dl
jne 0x4bb9ef
jmp 0x4bba26
mov eax, dword [esp]
test esi, esi
jne 0x4bb9c5
mov ebx, dword [esp + 4]
mov edx, dword [esp + 0x18]
mov edi, 0x51ea84
jmp 0x4bba31
mov edi, dword [esp]
mov ebx, dword [esp + 4]
mov edx, dword [esp + 0x18]
cmp dword [edi + 8], 0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
jne 0x4bba5f
xor eax, eax
cmp dword [edi + 0x10], 0
setne al
test ebp, ebp
jne 0x4bba5f
test eax, eax
jne 0x4bba5f
cmp dword [edi + 0xc], 0
jne 0x4bbfe7
jmp 0x4bbe8c
xor ebx, ebx
test ebp, ebp
je 0x4bbad2
mov esi, ebp
jmp 0x4bba95
mov ecx, dword [esp + 4]
mov edx, esi
push dword [esp + 0x18]
push edi
call fcn.004bd7f0
mov edx, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x4bba8e
or ebx, dword [eax + 0x10]
mov esi, dword [esi + 0x20]
test esi, esi
je 0x4bbad2
cmp byte [esi + 8], 0x7e
jne 0x4bba8e
test byte [esi + 9], 3
je 0x4bba8e
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x74]
test eax, eax
cmove eax, ecx
mov eax, dword [eax + 0x104]
jmp 0x4bbac3
mov eax, dword [eax + 4]
test eax, eax
je 0x4bba70
cmp dword [eax], esi
jne 0x4bbac0
cmp dword [eax + 0xc], edx
jne 0x4bbac0
jmp 0x4bba8b
mov esi, dword [esp + 4]
mov edx, edi
mov ecx, esi
call fcn.004bc550
mov ecx, dword [esi + 0x2c]
mov dword [esp], eax
movsx eax, word [edi + 0x2a]
lea eax, [ecx + eax + 1]
lea edx, [ecx + 1]
mov dword [esp + 8], ecx
mov dword [esi + 0x2c], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0xc], edx
mov eax, dword [esi + 0x6c]
cmp dword [esi + 0x70], eax
jle 0x4bbb3c
lea ecx, [eax + 1]
mov edx, dword [esp + 0x54]
lea eax, [eax + eax*4]
mov dword [esi + 0x6c], ecx
mov ecx, dword [esi + 0x68]
mov dword [ecx + eax*4], 0x4d
mov dword [ecx + eax*4 + 4], edx
mov edx, dword [esp + 0xc]
mov dword [ecx + eax*4 + 8], edx
mov dword [ecx + eax*4 + 0xc], 0
mov dword [ecx + eax*4 + 0x10], 0
jmp 0x4bbb54
mov eax, edx
mov ecx, esi
mov edx, 0x4d
push 0
push eax
push dword [esp + 0x5c]
call fcn.0046c600
add esp, 0xc
movzx ecx, word [edi + 0x2a]
mov edx, dword [esp]
test cx, cx
jle 0x4bbc40
add dword [esp + 8], 2
or edx, ebx
xor ebx, ebx
mov dword [esp], edx
jmp 0x4bbbae
mov edx, ebx
movsx eax, dx
mov ecx, esi
mov edx, edi
add eax, dword [esp + 8]
push eax
push ebx
push dword [esp + 0x54]
call fcn.0048be20
add esp, 0xc
movzx ecx, word [edi + 0x2a]
mov edx, dword [esp]
inc ebx
movsx eax, cx
cmp ebx, eax
jge 0x4bbc40
cmp ebx, 1
mov eax, 1
cmova eax, ebx
cmp edx, 0xffffffff
je 0x4bbbc8
cmp ebx, 0x1f
ja 0x4bbba2
bt edx, ebx
jae 0x4bbba2
test byte [edi + 0x24], 0x20
je 0x4bbb80
test bx, bx
js 0x4bbb80
mov esi, dword [edi + 4]
movzx edi, word [esi + 0x10]
and edi, 0x20
test bx, bx
je 0x4bbc19
movsx ecx, bx
mov edx, 1
cmp ecx, 1
cmovbe ecx, edx
add esi, 0x24
xor edx, edx
nop word cs:[eax + eax]
nop
movzx edi, di
shr edi, 5
xor edi, 1
add edx, edi
movzx edi, word [esi]
add esi, 0x14
and edi, 0x20
dec eax
jne 0x4bbc00
jmp 0x4bbc1d
xor ecx, ecx
xor edx, edx
mov esi, dword [esp + 0x1c]
test di, di
je 0x4bbc37
mov edi, dword [esp + 0x10]
sub ecx, edx
add cx, word [edi + 0x2c]
mov edx, ecx
jmp 0x4bbb82
mov edi, dword [esp + 0x10]
jmp 0x4bbb82
test ebp, ebp
je 0x4bbe17
mov eax, dword [esi + 0x6c]
mov ebx, dword [esp + 4]
mov esi, ebp
mov dword [esp + 0x2c], eax
jmp 0x4bbc6b
mov esi, dword [esi + 0x20]
test esi, esi
je 0x4bbdb3
cmp byte [esi + 8], 0x7e
jne 0x4bbc60
cmp byte [esi + 9], 1
jne 0x4bbc60
mov ecx, ebx
call fcn.00485cb0
mov edi, eax
mov eax, dword [ebx + 0x74]
mov edx, dword [esp + 0x18]
test eax, eax
cmove eax, ebx
mov eax, dword [eax + 0x104]
test eax, eax
jne 0x4bbcb7
mov eax, edx
mov ecx, ebx
mov edx, esi
push eax
push dword [esp + 0x14]
call fcn.004bd7f0
add esp, 8
test eax, eax
jne 0x4bbcc0
jmp 0x4bbc60
mov eax, dword [eax + 4]
test eax, eax
je 0x4bbc96
cmp dword [eax], esi
jne 0x4bbcb0
cmp dword [eax + 0xc], edx
jne 0x4bbcb0
cmp dword [esi], 0
je 0x4bbcd5
mov ecx, dword [ebx]
xor edx, edx
test byte [ecx + 0x21], 0x20
sete dl
mov dword [esp], edx
jmp 0x4bbcdc
mov dword [esp], 0
mov ecx, ebx
mov ebx, dword [ebx + 0x2c]
inc ebx
mov dword [ecx + 0x2c], ebx
mov eax, dword [eax + 8]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x6c]
cmp dword [edi + 0x70], eax
jle 0x4bbd29
lea ecx, [eax + 1]
mov ebp, dword [esp + 0xc]
lea edx, [eax + eax*4]
mov dword [edi + 0x6c], ecx
mov ecx, dword [edi + 0x68]
mov dword [ecx + edx*4], 0x2e
mov dword [ecx + edx*4 + 4], ebp
mov ebp, dword [esp + 0x14]
mov dword [ecx + edx*4 + 8], ebp
mov ebp, dword [esp + 0x48]
mov dword [ecx + edx*4 + 0xc], ebx
mov dword [ecx + edx*4 + 0x10], 0
jmp 0x4bbd41
mov ecx, edi
mov edx, 0x2e
push ebx
push dword [esp + 0x18]
push dword [esp + 0x14]
call fcn.0046c600
add esp, 0xc
mov ecx, dword [edi]
mov ebx, dword [esp + 4]
cmp byte [ecx + 0x51], 0
jne 0x4bbd95
test eax, eax
jns 0x4bbd55
mov eax, dword [edi + 0x6c]
dec eax
mov ecx, dword [edi + 0x68]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
je 0x4bbd77
lea edx, [ecx + eax*4]
mov ecx, edi
push 0xfffffffffffffffc
push dword [esp + 0xc]
call fcn.0046c7f0
add esp, 8
jmp 0x4bbd95
cmp dword [esp + 8], 0
je 0x4bbd95
lea edx, [ecx + eax*4 + 1]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 8]
mov dword [ecx + eax*4 + 0x10], edx
mov ecx, dword [esp + 0x28]
mov byte [ecx], 0xfc
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x4bbc60
mov ecx, dword [edi + 0x68]
mov edx, dword [esp]
lea eax, [eax + eax*4]
mov word [ecx + eax*4 - 0x12], dx
jmp 0x4bbc60
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov edx, dword [esi + 0x6c]
cmp dword [esp + 0x2c], edx
jge 0x4bbe6c
cmp dword [esi + 0x70], edx
jle 0x4bbe1d
lea ecx, [edx + 1]
mov ebp, dword [esp + 0x4c]
mov dword [esp], edx
mov dword [esi + 0x6c], ecx
mov ecx, edx
mov ecx, dword [esp + 0x20]
lea edx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov byte [eax + edx*4], cl
mov word [eax + edx*4 + 2], 0
mov dword [eax + edx*4 + 4], ebp
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
mov dword [eax + edx*4 + 8], ebp
mov ebp, dword [esp + 0x48]
mov dword [eax + edx*4 + 0xc], ecx
mov dword [eax + edx*4 + 0x10], 0
mov byte [eax + edx*4 + 1], 0
jmp 0x4bbe3b
mov ebx, dword [esp + 4]
jmp 0x4bbe6c
movzx edx, byte [esp + 0x20]
mov ecx, esi
push dword [esp + 0x54]
push dword [esp + 0x18]
push dword [esp + 0x54]
call fcn.0046c600
add esp, 0xc
mov dword [esp], eax
mov ecx, dword [esi]
cmp byte [ecx + 0x51], 0
je 0x4bbe4d
mov dword [esp + 0x24], 0xffffffff
jmp 0x4bbe6c
mov eax, dword [esp]
movsx ecx, word [esp + 0x58]
mov edx, dword [esi + 0x68]
mov dword [esp + 0x24], 0xffffffff
lea eax, [eax + eax*4]
mov byte [edx + eax*4 + 1], 0xfd
mov dword [edx + eax*4 + 0x10], ecx
mov ecx, ebx
mov edx, edi
push 0
push 0
push 0
push dword [esp + 0x18]
call fcn.004bca80
add esp, 0x10
cmp dword [edi + 0xc], 0
jne 0x4bbfe7
mov ecx, ebx
mov edx, edi
push dword [esp + 0x24]
push 0
push dword [esp + 0x58]
mov ebx, dword [esp + 0x58]
push ebx
call fcn.004bd300
add esp, 0x10
xor eax, eax
cmp byte [esp + 0x5c], 0
mov ecx, dword [esi + 0x6c]
setne al
cmp dword [esi + 0x70], ecx
jle 0x4bbee6
lea edx, [ecx + 1]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x6c], edx
mov edx, dword [esi + 0x68]
mov dword [edx + ecx*4], 0x7a
mov dword [edx + ecx*4 + 4], ebx
mov dword [edx + ecx*4 + 8], eax
mov dword [edx + ecx*4 + 0xc], 0
mov dword [edx + ecx*4 + 0x10], 0
jmp 0x4bbef9
mov ecx, esi
mov edx, 0x7a
push 0
push eax
push ebx
call fcn.0046c600
add esp, 0xc
mov eax, dword [esp + 4]
cmp byte [eax + 0x12], 0
je 0x4bbf33
mov eax, dword [edi]
test eax, eax
je 0x4bbf4d
xor ecx, ecx
jmp 0x4bbf20
movzx edx, byte [edx + 0x50ce7b]
cmp dl, byte [ebx + 0x50ce7b]
jne 0x4bbf4d
inc ecx
movzx edx, byte [eax + ecx]
movzx ebx, byte [ecx + str.sqlite_stat1]
cmp dl, bl
jne 0x4bbf10
test dl, dl
jne 0x4bbf1f
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
jne 0x4bbf4d
mov ecx, dword [esi + 0x6c]
mov eax, dword [esi + 0x68]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x13], 0xfa
mov dword [eax + ecx*4 - 4], edi
cmp byte [esp + 0x64], 0
je 0x4bbf68
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x4bbf68
mov ecx, dword [esi + 0x68]
lea eax, [eax + eax*4]
mov word [ecx + eax*4 - 0x12], 4
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 4]
test edx, edx
js 0x4bbfc9
cmp edx, dword [esp + 0x4c]
je 0x4bbfc9
mov eax, dword [esi + 0x6c]
cmp dword [esi + 0x70], eax
jle 0x4bbfb3
lea ecx, [eax + 1]
lea eax, [eax + eax*4]
mov dword [esi + 0x6c], ecx
mov ecx, dword [esi + 0x68]
mov dword [ecx + eax*4], 0x7a
mov dword [ecx + eax*4 + 4], edx
mov dword [ecx + eax*4 + 8], 0
mov dword [ecx + eax*4 + 0xc], 0
mov dword [ecx + eax*4 + 0x10], 0
jmp 0x4bbfc9
mov eax, edx
mov ecx, esi
mov edx, 0x7a
push 0
push 0
push eax
call fcn.0046c600
add esp, 0xc
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x4bbfe7
xor ecx, ecx
cmp byte [esp + 0x64], 2
mov edx, dword [esi + 0x68]
lea eax, [eax + eax*4]
sete cl
add ecx, ecx
mov word [edx + eax*4 - 0x12], cx
mov eax, dword [ebx]
test byte [eax + 0x21], 0x40
je 0x4bc233
mov esi, dword [edi + 0x48]
mov ecx, dword [edi]
mov edi, dword [esi + 0x44]
test edi, edi
je 0x4bc02c
mov bl, byte [ecx]
test bl, bl
je 0x4bc034
lea edx, [ecx + 1]
xor eax, eax
nop word [eax + eax]
movzx ebx, bl
movzx ebx, byte [ebx + 0x50ce7b]
add ebx, eax
imul eax, ebx, 0x9e3779b1
movzx ebx, byte [edx]
inc edx
test bl, bl
jne 0x4bc010
jmp 0x4bc036
lea eax, [esi + 0x40]
add esi, 0x3c
jmp 0x4bc042
xor eax, eax
xor edx, edx
div dword [esi + 0x38]
lea eax, [edi + edx*8 + 4]
lea esi, [edi + edx*8]
mov esi, dword [esi]
mov edx, 0x51ea84
test esi, esi
je 0x4bc0a1
mov eax, dword [eax]
dec esi
xor ebx, ebx
mov edi, dword [eax + 0xc]
mov dword [esp], eax
jmp 0x4bc070
movzx edx, byte [edx + 0x50ce7b]
cmp dl, byte [eax + 0x50ce7b]
jne 0x4bc090
inc ebx
movzx edx, byte [edi + ebx]
movzx eax, byte [ecx + ebx]
cmp dl, al
jne 0x4bc060
test dl, dl
jne 0x4bc06f
jmp 0x4bc09e
mov eax, dword [esp]
test esi, esi
jne 0x4bc04d
mov edx, 0x51ea84
jmp 0x4bc0a1
mov edx, dword [esp]
mov ebx, dword [edx + 8]
jmp 0x4bc0b3
mov ebx, dword [ebx + 0xc]
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x4bc233
mov ecx, dword [esp + 4]
mov edx, edi
push 0
push ebx
call fcn.004bfec0
add esp, 8
test eax, eax
je 0x4bc0b0
mov ebp, dword [esp + 4]
mov edi, eax
mov ecx, ebp
call fcn.00485cb0
mov esi, eax
mov eax, dword [ebp + 0x74]
test eax, eax
cmove eax, ebp
mov eax, dword [eax + 0x104]
jmp 0x4bc103
mov eax, dword [eax + 4]
test eax, eax
je 0x4bc120
cmp dword [eax], edi
jne 0x4bc100
cmp dword [eax + 0xc], 2
jne 0x4bc100
mov ebp, dword [esp + 0x48]
jmp 0x4bc140
mov ecx, dword [esp + 4]
mov edx, edi
push 2
push dword [esp + 0x14]
call fcn.004bd7f0
add esp, 8
mov ebp, dword [esp + 0x48]
test eax, eax
je 0x4bc0b0
cmp dword [edi], 0
je 0x4bc159
mov edx, dword [esp + 4]
xor ecx, ecx
mov edi, dword [edx]
test byte [edi + 0x21], 0x20
sete cl
mov dword [esp], ecx
jmp 0x4bc164
mov edx, dword [esp + 4]
mov dword [esp], 0
mov edi, dword [edx + 0x2c]
inc edi
mov dword [edx + 0x2c], edi
mov eax, dword [eax + 8]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x6c]
cmp dword [esi + 0x70], eax
jle 0x4bc1b0
lea ecx, [eax + 1]
mov ebp, dword [esp + 0xc]
lea edx, [eax + eax*4]
mov dword [esi + 0x6c], ecx
mov ecx, dword [esi + 0x68]
mov dword [ecx + edx*4], 0x2e
mov dword [ecx + edx*4 + 4], ebp
mov ebp, dword [esp + 0x48]
mov dword [ecx + edx*4 + 8], 0
mov dword [ecx + edx*4 + 0xc], edi
mov dword [ecx + edx*4 + 0x10], 0
jmp 0x4bc1c6
mov ecx, esi
mov edx, 0x2e
push edi
push 0
push dword [esp + 0x14]
call fcn.0046c600
add esp, 0xc
mov ecx, dword [esi]
cmp byte [ecx + 0x51], 0
jne 0x4bc210
test eax, eax
jns 0x4bc1d6
mov eax, dword [esi + 0x6c]
dec eax
mov ecx, dword [esi + 0x68]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
je 0x4bc1f8
lea edx, [ecx + eax*4]
mov ecx, esi
push 0xfffffffffffffffc
push dword [esp + 0xc]
call fcn.0046c7f0
add esp, 8
jmp 0x4bc210
cmp dword [esp + 8], 0
je 0x4bc210
mov edi, dword [esp + 8]
lea edx, [ecx + eax*4 + 1]
mov dword [ecx + eax*4 + 0x10], edi
mov byte [edx], 0xfc
nop
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x4bc0b0
mov ecx, dword [esi + 0x68]
mov edx, dword [esp]
lea eax, [eax + eax*4]
mov word [ecx + eax*4 - 0x12], dx
jmp 0x4bc0b0
mov ebp, dword [ebp + 0x20]
test ebp, ebp
je 0x4bc384
cmp byte [ebp + 8], 0x7e
jne 0x4bc230
cmp byte [ebp + 9], 2
jne 0x4bc230
mov ebx, dword [esp + 4]
mov ecx, ebx
call fcn.00485cb0
mov esi, eax
mov eax, dword [ebx + 0x74]
mov edx, dword [esp + 0x18]
test eax, eax
cmove eax, ebx
mov eax, dword [eax + 0x104]
test eax, eax
jne 0x4bc287
mov eax, edx
mov ecx, ebx
mov edx, ebp
push eax
push edi
call fcn.004bd7f0
add esp, 8
test eax, eax
jne 0x4bc290
jmp 0x4bc230
mov eax, dword [eax + 4]
test eax, eax
je 0x4bc26a
cmp dword [eax], ebp
jne 0x4bc280
cmp dword [eax + 0xc], edx
jne 0x4bc280
cmp dword [ebp], 0
je 0x4bc2a7
mov edx, dword [esp + 4]
xor ebx, ebx
mov ecx, dword [edx]
test byte [ecx + 0x21], 0x20
sete bl
jmp 0x4bc2ad
mov edx, dword [esp + 4]
xor ebx, ebx
mov edi, dword [edx + 0x2c]
inc edi
mov dword [edx + 0x2c], edi
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esi + 0x6c]
cmp dword [esi + 0x70], eax
jle 0x4bc2ff
lea ecx, [eax + 1]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xc]
lea edx, [eax + eax*4]
mov dword [esi + 0x6c], ecx
mov ecx, dword [esi + 0x68]
mov dword [ecx + edx*4], 0x2e
mov dword [ecx + edx*4 + 4], ebx
mov ebx, ebp
mov ebp, dword [esp + 0x14]
mov dword [ecx + edx*4 + 8], ebp
mov ebp, ebx
mov ebx, dword [esp + 8]
mov dword [ecx + edx*4 + 0xc], edi
mov dword [ecx + edx*4 + 0x10], 0
jmp 0x4bc317
mov ecx, esi
mov edx, 0x2e
push edi
push dword [esp + 0x18]
push dword [esp + 0x14]
call fcn.0046c600
add esp, 0xc
mov ecx, dword [esi]
mov edi, dword [esp + 0x10]
cmp byte [ecx + 0x51], 0
jne 0x4bc369
test eax, eax
jns 0x4bc32b
mov eax, dword [esi + 0x6c]
dec eax
mov ecx, dword [esi + 0x68]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
je 0x4bc34d
lea edx, [ecx + eax*4]
mov ecx, esi
push 0xfffffffffffffffc
push dword [esp + 4]
call fcn.0046c7f0
add esp, 8
jmp 0x4bc369
cmp dword [esp], 0
je 0x4bc369
lea edx, [ecx + eax*4 + 1]
mov dword [esp + 8], edx
mov edx, dword [esp]
mov dword [ecx + eax*4 + 0x10], edx
mov ecx, dword [esp + 8]
mov byte [ecx], 0xfc
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x4bc230
mov ecx, dword [esi + 0x68]
lea eax, [eax + eax*4]
mov word [ecx + eax*4 - 0x12], bx
jmp 0x4bc230
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
mov ecx, dword [edx + 0xc]
neg esi
mov eax, dword [ecx + 0x38]
add eax, dword [ecx + 0x3c]
js 0x4bc3a7
mov eax, dword [edx + 0x6c]
mov ecx, dword [ecx + 0x40]
mov dword [ecx + esi*4], eax
add esp, 0x34
jmp 0x4bc3b0
push esi
call fcn.0048f970
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret