Function at 0x4afa20
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x84
push ebx
push esi
mov esi, dword [esp + 0x90]
cmp dword [esi + 0x34], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
jne 0x4afa5b
lea eax, [esp + 0x28]
push eax
push esi
call fcn.004b2c20
mov dword [esp + 0x44], eax
add esp, 8
mov eax, dword [esp + 0x28]
jmp 0x4afa65
mov eax, dword [esi + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x28]
mov dword [esp + 0x1c], eax
cmp ebx, 2
jae 0x4afa89
mov dword [esi + 0x90], 0xffffffff
mov eax, 1
pop esi
pop ebx
add esp, 0x84
ret
cmp ebx, 0x111
jbe 0x4afa96
mov ebx, 0x111
push dword [esi]
mov eax, dword [esi + 0xc]
call eax
add esp, 4
xor ecx, ecx
mov dword [esp + 0x38], ecx
lea edx, [eax - 1]
xor eax, eax
mov dword [esp + 0x18], eax
mov al, byte [edx]
mov byte [esp + 0xb], al
lea eax, [esi + 0x38]
push ebp
mov dword [esp + 0x48], edx
xor esi, esi
mov dword [esp + 0x2c], eax
push edi
mov eax, dword [eax + ecx*4]
lea ebp, [ecx*4]
mov edi, edx
mov dword [esp + ebp + 0x54], eax
sub edi, eax
mov al, byte [esp + 0x13]
cmp al, byte [edi]
jne 0x4afb2d
mov al, byte [edx + 1]
cmp al, byte [edi + 1]
jne 0x4afb2d
mov edx, 2
cmp ebx, edx
jbe 0x4afb09
mov eax, dword [esp + 0x4c]
sub edi, eax
lea ecx, [eax + 2]
mov al, byte [ecx]
cmp al, byte [edi + ecx]
jne 0x4afb05
inc edx
inc ecx
cmp edx, ebx
jb 0x4afaf8
mov ecx, dword [esp + 0x40]
mov dword [esp + ebp + 0x84], edx
cmp edx, dword [esp + esi + 0x84]
jbe 0x4afb1f
mov dword [esp + 0x20], ecx
mov esi, ebp
cmp edx, 0x111
je 0x4afb4a
mov edx, dword [esp + 0x4c]
jmp 0x4afb38
mov dword [esp + ebp + 0x84], 0
mov eax, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x40], ecx
cmp ecx, 4
jb 0x4afac4
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x98]
mov ebp, dword [esp + eax*4 + 0x84]
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x28], ebp
cmp ebp, ecx
jb 0x4afb8e
lea ecx, [ebp - 1]
mov dword [esi + 0x90], eax
add dword [esi + 0x34], ecx
lea ecx, [ebp - 1]
push ecx
push dword [esi]
mov ecx, dword [esi + 0x14]
call ecx
add esp, 8
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x84
ret
mov ebx, dword [esp + 0x44]
cmp ebx, ecx
jb 0x4afbcb
mov eax, dword [esp + 0x24]
mov eax, dword [esi + eax*4 + 0x744]
add eax, 4
mov dword [esi + 0x90], eax
lea eax, [ebx - 1]
add dword [esi + 0x34], eax
lea eax, [ebx - 1]
push eax
push dword [esi]
mov eax, dword [esi + 0x14]
call eax
add esp, 8
mov eax, ebx
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x84
ret
mov ecx, dword [esp + 0x4c]
mov eax, ecx
mov edx, dword [esp + 0x54]
sub eax, edx
mov dword [esp + 0x48], edx
mov al, byte [eax]
mov byte [esp + 0x1b], al
cmp ebp, ebx
ja 0x4afbeb
mov ebp, ebx
mov dword [esp + 0x28], ebx
cmp ebp, 2
jae 0x4afc10
cmp byte [esp + 0x13], al
je 0x4afc10
pop edi
pop ebp
mov dword [esi + 0x90], 0xffffffff
mov eax, 1
pop esi
pop ebx
add esp, 0x84
ret
mov ax, word [esi + 0x2c]
mov word [esi + 0xbaa4], ax
mov eax, dword [esi + 0x4c]
and eax, dword [esp + 0x9c]
movzx edx, byte [ecx - 1]
mov ecx, dword [esi + 0x94]
mov ebp, dword [esi + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x9c]
shl eax, 8
add edx, eax
mov eax, dword [esi + 0x50]
and edx, dword [esi + 0x48]
shl edx, cl
lea ecx, [edx + edx*2]
lea ebx, [eax + ecx*2]
cmp ebp, 7
jb 0x4afc75
lea eax, [esi + 0x548]
push eax
movzx eax, byte [esp + 0x1f]
push eax
movzx eax, byte [esp + 0x1b]
push eax
push ebx
call fcn.004b1410
add esp, 0x10
mov edi, eax
jmp 0x4afca6
movzx edx, byte [esp + 0x13]
xor edi, edi
or edx, 0x100
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
movzx eax, word [ebx + edx*2]
and ecx, 0x7f
shr eax, 4
xor eax, ecx
add edi, dword [esi + eax*4 + 0x548]
cmp edx, 2
jae 0x4afc82
shl ebp, 4
add ebp, dword [esp + 0x14]
movzx eax, word [esi + ebp*2 + 0x1c98]
mov ebp, dword [esp + 0x14]
shr eax, 4
mov eax, dword [esi + eax*4 + 0x548]
add eax, edi
mov dword [esi + 0xbacc], 0xffffffff
mov dword [esi + 0xbac0], eax
xor eax, eax
mov word [esi + 0xbac6], ax
mov edx, dword [esi + 0x2c]
mov ecx, edx
shl ecx, 4
add ecx, ebp
movzx eax, word [esi + ecx*2 + 0x1c98]
xor eax, 0x7f0
shr eax, 4
mov edi, dword [esi + eax*4 + 0x548]
movzx eax, word [esi + edx*2 + 0x1c38]
xor eax, 0x7f0
mov dword [esp + 0x50], edi
shr eax, 4
mov ebx, dword [esi + eax*4 + 0x548]
mov al, byte [esp + 0x1b]
add ebx, edi
mov dword [esp + 0x30], ebx
cmp al, byte [esp + 0x13]
jne 0x4afd9e
cmp dword [esp + 0x84], 0
jne 0x4afd9e
movzx ecx, word [esi + ecx*2 + 0x1e18]
movzx eax, word [esi + edx*2 + 0x1c50]
shr ecx, 4
shr eax, 4
mov ecx, dword [esi + ecx*4 + 0x548]
add ecx, dword [esi + eax*4 + 0x548]
add ecx, ebx
cmp ecx, dword [esi + 0xbac0]
jae 0x4afd7b
xor eax, eax
mov dword [esi + 0xbac0], ecx
mov dword [esi + 0xbacc], 0
mov word [esi + 0xbac6], ax
cmp dword [esp + 0x28], 2
jae 0x4afd9e
mov eax, dword [esi + 0xbacc]
pop edi
pop ebp
mov dword [esi + 0x90], eax
mov eax, 1
pop esi
pop ebx
add esp, 0x84
ret
mov eax, dword [esp + 0x58]
xor ebx, ebx
mov ecx, dword [esp + 0x48]
mov dword [esi + 0xbac8], 1
mov dword [esp + 0x4c], eax
mov dword [esi + 0xbab4], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 0xbab8], eax
mov eax, dword [esp + 0x60]
mov dword [esi + 0xbab0], ecx
mov dword [esi + 0xbabc], eax
jmp 0x4afde0
mov edx, dword [esp + ebx*4 + 0x84]
cmp edx, 2
jb 0x4afecc
mov eax, dword [esi + 0x2c]
movzx ecx, word [esi + eax*2 + 0x1c50]
test ebx, ebx
jne 0x4afe27
shl eax, 4
add eax, ebp
shr ecx, 4
movzx eax, word [esi + eax*2 + 0x1e18]
xor eax, 0x7f0
shr eax, 4
mov ebp, dword [esi + eax*4 + 0x548]
add ebp, dword [esi + ecx*4 + 0x548]
jmp 0x4afe83
movzx edi, word [esi + eax*2 + 0x1c68]
xor ecx, 0x7f0
shr ecx, 4
mov ebp, dword [esi + ecx*4 + 0x548]
cmp ebx, 1
jne 0x4afe50
shr edi, 4
add ebp, dword [esi + edi*4 + 0x548]
jmp 0x4afe83
movzx ecx, word [esi + eax*2 + 0x1c80]
xor edi, 0x7f0
mov eax, 2
shr ecx, 4
sub eax, ebx
shr edi, 4
shr eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [esi + ecx*4 + 0x548]
add eax, dword [esi + edi*4 + 0x548]
add ebp, eax
imul eax, dword [esp + 0x14], 0x110
add ebp, dword [esp + 0x30]
add eax, 0x1da6
add eax, edx
lea edi, [esi + eax*4]
mov eax, edx
shl eax, 5
add eax, 0xbaac
add eax, esi
mov ecx, dword [edi]
add ecx, ebp
cmp ecx, dword [eax - 0xc]
jae 0x4afebc
mov dword [eax - 0xc], ecx
xor ecx, ecx
mov dword [eax - 4], edx
mov dword [eax], ebx
mov word [eax - 6], cx
dec edx
sub edi, 4
sub eax, 0x20
cmp edx, 2
jae 0x4afea5
mov ebp, dword [esp + 0x14]
inc ebx
cmp ebx, 4
jb 0x4afde0
mov edi, dword [esp + 0x84]
inc edi
cmp edi, dword [esp + 0x44]
ja 0x4b0001
mov eax, dword [esi + 0x2c]
xor ebp, ebp
movzx eax, word [esi + eax*2 + 0x1c38]
shr eax, 4
mov eax, dword [esi + eax*4 + 0x548]
add eax, dword [esp + 0x50]
mov dword [esp + 0x30], eax
cmp edi, 2
jae 0x4aff11
lea edi, [ebp + 2]
jmp 0x4aff2c
cmp edi, dword [esi + 0x748]
jbe 0x4aff2c
lea esp, [esp]
add ebp, 2
cmp edi, dword [esi + ebp*4 + 0x748]
ja 0x4aff20
imul eax, dword [esp + 0x14], 0x110
lea ecx, [esi + 0xbaac]
add eax, 0xca5
add eax, edi
lea edx, [esi + eax*4]
mov eax, edi
shl eax, 5
add ecx, eax
mov ebx, dword [edx]
add ebx, dword [esp + 0x30]
mov eax, dword [esi + ebp*4 + 0x74c]
mov dword [esp + 0x20], edx
lea edx, [edi - 2]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
cmp edi, 5
jb 0x4aff71
mov edx, 3
cmp eax, 0x80
jae 0x4aff8d
shl edx, 7
and eax, 0x7f
add edx, eax
add ebx, dword [esi + edx*4 + 0x1418]
mov edx, dword [esp + 0x40]
jmp 0x4affc9
cmp eax, 0x20000
sbb ecx, ecx
shl edx, 5
and ecx, 0xfffffff6
add ecx, 0x10
shr eax, cl
add edx, ecx
movzx eax, byte [eax + esi + 0x2a98]
lea eax, [eax + edx*2]
mov edx, dword [esp + 0x40]
mov eax, dword [esi + eax*4 + 0x1018]
mov ecx, edx
and ecx, 0xf
add eax, dword [esi + ecx*4 + 0xfd8]
mov ecx, dword [esp + 0x3c]
add ebx, eax
cmp ebx, dword [ecx - 0xc]
jae 0x4affdf
lea eax, [edx + 4]
mov dword [ecx - 0xc], ebx
mov dword [ecx], eax
xor eax, eax
mov dword [ecx - 4], edi
mov word [ecx - 6], ax
cmp edi, dword [esi + ebp*4 + 0x748]
jne 0x4afff1
add ebp, 2
cmp ebp, dword [esp + 0x24]
je 0x4b0001
mov edx, dword [esp + 0x20]
inc edi
add edx, 4
add ecx, 0x20
jmp 0x4aff4b
mov ebp, dword [esp + 0x28]
mov ebx, 1
mov dword [esp + 0x34], ebx
cmp ebp, ebx
je 0x4b0c1c
jmp 0x4b0020
cmp ebx, 0x7c0
jae 0x4b0bd4
lea eax, [esp + 0x40]
push eax
push esi
call fcn.004b2c20
mov ecx, eax
add esp, 8
mov dword [esp + 0x80], ecx
cmp ecx, dword [esi + 0x30]
jae 0x4b0bc8
inc dword [esp + 0x9c]
lea edi, [ebx + 0x5d5]
shl edi, 5
mov edx, ebx
add edi, esi
sub edx, dword [edi + 8]
cmp dword [edi + 8], 1
jne 0x4b00aa
mov ebx, dword [esp + 0x5c]
shl edx, 5
cmp dword [edi + 0xc], 0
movzx eax, word [edx + esi + 0xbaa4]
mov edx, dword [esp + 0x48]
jne 0x4b0096
movzx ebp, byte [eax + 0x5271c4]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x2c], ebp
jmp 0x4b0170
movzx ebp, byte [eax + 0x5271a0]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x2c], ebp
jmp 0x4b0170
movzx ebx, word [edi + 6]
mov ecx, dword [edi + 0xc]
test bx, bx
je 0x4b00d2
sub edx, ebx
mov ebp, 8
mov dword [esp + 0x2c], ebp
cmp ebx, 1
jne 0x4b00f8
cmp ecx, 4
sbb ebp, ebp
neg ebp
add ebp, 7
jmp 0x4b00f4
mov eax, edx
shl eax, 5
movzx eax, word [eax + esi + 0xbaa4]
cmp ecx, 4
jae 0x4b00ed
movzx ebp, byte [eax + 0x5271b8]
jmp 0x4b00f4
movzx ebp, byte [eax + str._a_a_a_a_a_a_a_n_n_n_n_n_b_b_b_b_b_b_b_v_v_v_v_v_t_t_t_t_t_t_t_v_v_v_v_v_RK]
mov dword [esp + 0x2c], ebp
lea eax, [edx + 0x5d5]
shl eax, 5
add eax, esi
mov ebx, dword [eax + 0x10]
mov dword [esp + 0x4c], ebx
cmp ecx, 4
jae 0x4b014f
test ecx, ecx
jne 0x4b0128
mov edx, ebx
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x58], ebx
mov ebx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
jmp 0x4b0160
mov edx, dword [eax + 0x14]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x48], edx
cmp ecx, 1
jne 0x4b0140
mov ebx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
jmp 0x4b0164
mov ebx, edx
mov edx, dword [eax + ecx*4 + 0x10]
xor ecx, 1
mov eax, dword [eax + ecx*4 + 0x10]
jmp 0x4b0160
mov dword [esp + 0x4c], ebx
lea edx, [ecx - 3]
mov dword [esp + 0x58], ebx
mov ebx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x48], edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], edx
mov ecx, dword [esp + 0x4c]
mov word [edi + 4], bp
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], eax
push dword [esi]
mov eax, dword [esi + 0xc]
call eax
mov ecx, dword [esi + 0x4c]
add esp, 4
and ecx, dword [esp + 0x9c]
mov dword [esp + 0x30], ecx
lea ebp, [eax - 1]
mov eax, ebp
mov bl, byte [ebp]
sub eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x13], bl
mov bh, byte [eax]
mov eax, dword [esp + 0x2c]
shl eax, 4
add eax, ecx
mov byte [esp + 0x1b], bh
mov dword [esp + 0x68], eax
movzx ecx, word [esi + eax*2 + 0x1c98]
mov eax, ecx
shr ecx, 4
xor eax, 0x7f0
shr eax, 4
mov eax, dword [esi + eax*4 + 0x548]
add eax, dword [edi]
mov dword [esp + 0x50], eax
mov eax, dword [esi + ecx*4 + 0x548]
xor ecx, ecx
add eax, dword [edi]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], eax
lea edi, [edi + 0x5d6]
shl edi, 5
add edi, esi
mov ecx, dword [edi]
cmp ecx, 0x40000000
jae 0x4b0219
cmp bh, bl
je 0x4b021d
cmp eax, ecx
jbe 0x4b0224
xor ebp, ebp
jmp 0x4b02cd
mov eax, dword [esp + 0x9c]
movzx edx, byte [ebp - 1]
mov ecx, dword [esi + 0x94]
shl eax, 8
add edx, eax
mov eax, dword [esi + 0x50]
and edx, dword [esi + 0x48]
shl edx, cl
cmp dword [esp + 0x2c], 7
lea ecx, [edx + edx*2]
lea ebp, [eax + ecx*2]
jb 0x4b026b
lea eax, [esi + 0x548]
push eax
movzx eax, bh
push eax
movzx eax, bl
push eax
push ebp
call fcn.004b1410
add esp, 0x10
mov ebx, eax
jmp 0x4b029d
movzx edx, byte [esp + 0x13]
xor ebx, ebx
or edx, 0x100
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
movzx eax, word [ebp + edx*2]
and ecx, 0x7f
shr eax, 4
xor eax, ecx
add ebx, dword [esi + eax*4 + 0x548]
cmp edx, 2
jae 0x4b0278
mov ebp, dword [esp + 0x38]
add ebp, ebx
mov bl, byte [esp + 0x13]
mov bh, byte [esp + 0x1b]
cmp ebp, dword [edi]
jae 0x4b02cd
xor eax, eax
mov dword [edi], ebp
mov dword [edi + 8], 1
mov dword [edi + 0xc], 0xffffffff
mov word [edi + 6], ax
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 0x28]
mov dword [esp + 0x44], edx
lea eax, [ecx + 0xe1c]
lea eax, [esi + eax*2]
mov dword [esp + 0x74], eax
movzx eax, word [eax]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [esi + eax*4 + 0x548]
add eax, dword [esp + 0x50]
mov esi, dword [esp + 0x98]
mov dword [esp + 0x7c], eax
mov eax, 0x7ff
sub eax, dword [esp + 0x34]
cmp edx, eax
jbe 0x4b0317
mov dword [esp + 0x44], eax
cmp ecx, 7
jae 0x4b037c
cmp bh, bl
jne 0x4b037c
mov edx, dword [edi]
cmp dword [esp + 0x7c], edx
jae 0x4b037c
cmp dword [edi + 8], 2
jb 0x4b0334
cmp dword [edi + 0xc], 0
je 0x4b037c
movzx ecx, word [esi + ecx*2 + 0x1c50]
mov eax, dword [esp + 0x68]
shr ecx, 4
movzx eax, word [esi + eax*2 + 0x1e18]
mov ecx, dword [esi + ecx*4 + 0x548]
shr eax, 4
add ecx, dword [esi + eax*4 + 0x548]
add ecx, dword [esp + 0x7c]
cmp ecx, edx
jae 0x4b037c
xor eax, eax
mov dword [edi], ecx
mov dword [edi + 8], 1
mov dword [edi + 0xc], 0
mov word [edi + 6], ax
jmp 0x4b0380
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x44]
cmp edi, 2
jb 0x4b0bb1
mov edx, dword [esi + 0x30]
mov dword [esp + 0x3c], edi
cmp edi, edx
jbe 0x4b039c
mov dword [esp + 0x3c], edx
test eax, eax
jne 0x4b04cd
test ebp, ebp
je 0x4b04cd
cmp bh, bl
je 0x4b04cd
cmp edi, 2
mov edi, dword [esp + 0x1c]
jbe 0x4b04d1
mov ecx, dword [esp + 0x20]
mov al, byte [edi + 1]
cmp al, byte [ecx + 1]
jne 0x4b04d1
mov al, byte [edi + 2]
cmp al, byte [ecx + 2]
jne 0x4b04d1
mov eax, dword [esp + 0x44]
inc edx
cmp edx, eax
jbe 0x4b03e8
mov edx, eax
mov ebx, 3
cmp edx, ebx
jbe 0x4b0404
add ecx, ebx
sub edi, dword [esp + 0x20]
mov al, byte [edi + ecx]
cmp al, byte [ecx]
jne 0x4b0404
inc ebx
inc ecx
cmp ebx, edx
jb 0x4b03f7
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x9c]
inc ecx
and ecx, dword [esi + 0x4c]
movzx edi, byte [eax + 0x5271a0]
mov edx, edi
mov dword [esp + 0x38], ecx
shl edx, 4
add edx, ecx
movzx ecx, word [esi + edi*2 + 0x1c38]
xor ecx, 0x7f0
shr ecx, 4
movzx eax, word [esi + edx*2 + 0x1e18]
xor eax, 0x7f0
shr eax, 4
mov ecx, dword [esi + ecx*4 + 0x548]
add ecx, dword [esi + eax*4 + 0x548]
movzx eax, word [esi + edx*2 + 0x1c98]
xor eax, 0x7f0
shr eax, 4
add ecx, dword [esi + eax*4 + 0x548]
movzx eax, word [esi + edi*2 + 0x1c50]
mov edi, dword [esp + 0x34]
shr eax, 4
add edi, ebx
add ecx, dword [esi + eax*4 + 0x548]
add ecx, ebp
cmp dword [esp + 0x28], edi
jae 0x4b048f
mov dword [esp + 0x28], edi
imul eax, dword [esp + 0x38], 0x110
dec ebx
add eax, ebx
mov edx, dword [esi + eax*4 + 0x7698]
lea eax, [edi + 0x5d5]
mov edi, dword [esp + 0x1c]
add edx, ecx
shl eax, 5
add eax, esi
cmp edx, dword [eax]
jae 0x4b04d1
mov ecx, 1
mov dword [eax], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], 0
mov word [eax + 6], cx
jmp 0x4b04d1
mov edi, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x20], 2
mov dword [esp + 0x14], ecx
nop
mov al, byte [edi]
mov ebx, edi
sub ebx, dword [esp + ecx*4 + 0x54]
mov dword [esp + 0x78], ebx
cmp al, byte [ebx]
jne 0x4b0802
mov al, byte [edi + 1]
cmp al, byte [ebx + 1]
jne 0x4b0802
mov ebp, dword [esp + 0x3c]
mov edx, 2
mov dword [esp + 0x6c], edx
cmp ebp, edx
jbe 0x4b0527
lea ecx, [ebx + 2]
sub edi, ebx
mov al, byte [edi + ecx]
cmp al, byte [ecx]
jne 0x4b0523
inc edx
inc ecx
cmp edx, ebp
jb 0x4b0516
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x34]
add eax, edx
mov dword [esp + 0x38], eax
cmp dword [esp + 0x28], eax
jae 0x4b053b
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
mov edi, edx
movzx ecx, word [esi + eax*2 + 0x1c50]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4b0578
mov eax, dword [esp + 0x68]
shr ecx, 4
movzx eax, word [esi + eax*2 + 0x1e18]
xor eax, 0x7f0
shr eax, 4
mov ebp, dword [esi + eax*4 + 0x548]
add ebp, dword [esi + ecx*4 + 0x548]
jmp 0x4b05da
xor ecx, 0x7f0
shr ecx, 4
mov ebp, dword [esi + ecx*4 + 0x548]
mov ecx, dword [esp + 0x2c]
movzx ebx, word [esi + ecx*2 + 0x1c68]
cmp eax, 1
jne 0x4b05a5
shr ebx, 4
add ebp, dword [esi + ebx*4 + 0x548]
jmp 0x4b05da
movzx ecx, word [esi + ecx*2 + 0x1c80]
mov eax, 2
sub eax, dword [esp + 0x14]
xor ebx, 0x7f0
shr eax, 4
and eax, 0x7f
shr ecx, 4
xor ecx, eax
shr ebx, 4
mov eax, dword [esi + ecx*4 + 0x548]
add eax, dword [esi + ebx*4 + 0x548]
add ebp, eax
imul eax, dword [esp + 0x30], 0x110
add ebp, dword [esp + 0x7c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x64], eax
add eax, 0x1da6
add eax, edx
lea ebx, [esi + eax*4]
mov eax, dword [esp + 0x38]
shl eax, 5
add eax, 0xbaac
add eax, esi
mov esi, dword [esp + 0x14]
lea ebx, [ebx]
mov ecx, dword [ebx]
add ecx, ebp
cmp ecx, dword [eax - 0xc]
jae 0x4b0627
mov dword [eax - 0xc], ecx
xor ecx, ecx
mov dword [eax - 4], edi
mov dword [eax], esi
mov word [eax - 6], cx
dec edi
sub ebx, 4
sub eax, 0x20
cmp edi, 2
jae 0x4b0610
test esi, esi
mov esi, dword [esp + 0x98]
jne 0x4b0645
lea eax, [edx + 1]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x30]
lea ebp, [edx + 1]
mov ecx, dword [esp + 0x44]
add eax, ebp
mov dword [esp + 0x38], eax
cmp eax, ecx
jbe 0x4b065f
mov eax, ecx
mov dword [esp + 0x38], ecx
mov edi, dword [esp + 0x1c]
add ebp, 2
cmp ebp, eax
ja 0x4b07fe
mov ecx, dword [esp + 0x78]
mov al, byte [edi + ebp - 2]
add ecx, ebp
mov dword [esp + 0x70], ecx
cmp al, byte [ecx - 2]
jne 0x4b07fe
mov al, byte [edi + ebp - 1]
cmp al, byte [ecx - 1]
jne 0x4b07fe
mov ecx, dword [esp + 0x9c]
lea eax, [esi + 0x548]
push eax
mov eax, dword [esp + 0x7c]
add ecx, edx
mov edi, dword [esi + 0x4c]
and edi, ecx
shl ecx, 8
movzx eax, byte [edx + eax]
push eax
mov eax, dword [esp + 0x24]
movzx eax, byte [edx + eax]
push eax
mov eax, dword [esp + 0x28]
movzx eax, byte [eax + edx - 1]
add eax, ecx
mov ecx, dword [esi + 0x94]
and eax, dword [esi + 0x48]
shl eax, cl
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x50]
lea eax, [eax + ecx*2]
push eax
call fcn.004b1410
mov ecx, dword [esp + 0x3c]
add esp, 0x10
mov edx, dword [esp + 0x6c]
movzx ecx, byte [ecx + 0x5271b8]
shl ecx, 4
add ecx, edi
movzx ecx, word [esi + ecx*2 + 0x1c98]
shr ecx, 4
add eax, dword [esi + ecx*4 + 0x548]
mov ecx, dword [esp + 0x64]
add ecx, edx
add eax, dword [esi + ecx*4 + 0x7698]
add dword [esp + 0x24], eax
lea eax, [edi + 1]
and eax, dword [esi + 0x4c]
mov dword [esp + 0x64], eax
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x38]
movzx ecx, word [esi + eax*2 + 0x1eb8]
movzx eax, word [esi + eax*2 + 0x1d38]
xor ecx, 0x7f0
xor eax, 0x7f0
shr ecx, 4
shr eax, 4
mov ecx, dword [esi + ecx*4 + 0x548]
add ecx, dword [esi + eax*4 + 0x548]
movzx eax, word [esi + 0x1c42]
xor eax, 0x7f0
shr eax, 4
add ecx, dword [esi + eax*4 + 0x548]
movzx eax, word [esi + 0x1c5a]
shr eax, 4
add ecx, dword [esi + eax*4 + 0x548]
add ebx, ecx
mov dword [esp + 0x24], ebx
cmp ebp, edi
jae 0x4b07b1
mov ebx, dword [esp + 0x1c]
sub ebx, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
lea esp, [esp]
mov al, byte [ebx + ecx]
cmp al, byte [ecx]
jne 0x4b07ad
inc ebp
inc ecx
cmp ebp, edi
jb 0x4b07a0
mov ebx, dword [esp + 0x24]
sub ebp, edx
lea ecx, [edx + ebp]
add ecx, dword [esp + 0x34]
cmp dword [esp + 0x28], ecx
jae 0x4b07c4
mov dword [esp + 0x28], ecx
imul eax, dword [esp + 0x64], 0x110
dec ebp
mov edi, dword [esp + 0x1c]
add ecx, 0x5d5
shl ecx, 5
add ecx, esi
add eax, ebp
mov eax, dword [esi + eax*4 + 0x7698]
add eax, ebx
cmp eax, dword [ecx]
jae 0x4b07fe
mov dword [ecx], eax
lea eax, [edx + 1]
mov word [ecx + 6], ax
mov eax, dword [esp + 0x14]
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, 4
jb 0x4b04e0
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x80]
cmp edi, ecx
jbe 0x4b084c
xor eax, eax
mov edi, ecx
cmp ecx, dword [esi + 0x748]
jbe 0x4b083c
jmp 0x4b0830
add eax, 2
cmp ecx, dword [esi + eax*4 + 0x748]
ja 0x4b0830
mov dword [esi + eax*4 + 0x748], ecx
add eax, 2
mov dword [esp + 0x40], eax
jmp 0x4b0850
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x38], eax
cmp edi, ebx
jb 0x4b0bb1
mov eax, dword [esp + 0x74]
movzx eax, word [eax]
shr eax, 4
mov edx, dword [esi + eax*4 + 0x548]
mov eax, dword [esp + 0x34]
add edx, dword [esp + 0x50]
add eax, edi
mov dword [esp + 0x64], edx
cmp dword [esp + 0x28], eax
jae 0x4b0889
mov dword [esp + 0x28], eax
xor edi, edi
mov dword [esp + 0x24], edi
cmp ebx, dword [esi + 0x748]
jbe 0x4b08b0
jmp 0x4b08a0
add edi, 2
cmp ebx, dword [esi + edi*4 + 0x748]
ja 0x4b08a0
mov dword [esp + 0x24], edi
mov ebp, dword [esi + edi*4 + 0x74c]
cmp ebp, 0x20000
mov eax, ebp
mov edi, dword [esp + 0x24]
sbb ecx, ecx
mov dword [esp + 0x50], ebp
and ecx, 0xfffffff6
add ecx, 0x10
shr eax, cl
movzx eax, byte [eax + esi + 0x2a98]
lea eax, [eax + ecx*2]
mov dword [esp + 0x6c], eax
lea ecx, [ebx + 3]
mov eax, dword [esp + 0x9c]
add eax, ebx
add ebx, 0xca5
shl eax, 8
mov dword [esp + 0x3c], eax
imul eax, dword [esp + 0x30], 0x110
add eax, ebx
lea ebx, [esi + eax*4]
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x34]
shl eax, 5
add eax, 0xbaac
add eax, esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffffd
mov dword [esp + 0x80], eax
mov dword [esp + 0x68], ebx
mov ebx, dword [ebx]
add ebx, edx
mov dword [esp + 0x14], ecx
lea edx, [ecx - 5]
cmp edx, 3
jb 0x4b0943
mov edx, 3
cmp ebp, 0x80
jae 0x4b095e
mov eax, ebp
shl edx, 7
and eax, 0x7f
add edx, eax
add ebx, dword [esi + edx*4 + 0x1418]
jmp 0x4b097e
shl edx, 6
mov ecx, ebp
add edx, dword [esp + 0x6c]
and ecx, 0xf
mov eax, dword [esi + edx*4 + 0x1018]
add eax, dword [esi + ecx*4 + 0xfd8]
mov ecx, dword [esp + 0x14]
add ebx, eax
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], ebx
cmp ebx, dword [edx - 0xc]
jae 0x4b099f
lea eax, [ecx - 3]
mov dword [edx - 0xc], ebx
mov dword [edx - 4], eax
lea eax, [ebp + 4]
mov dword [edx], eax
xor eax, eax
mov word [edx - 6], ax
lea eax, [ecx - 3]
mov dword [esp + 0x70], eax
cmp eax, dword [esi + edi*4 + 0x748]
jne 0x4b0b91
mov edx, dword [esi + 0x30]
mov ebx, dword [esp + 0x1c]
add edx, 0xfffffffe
mov eax, dword [esp + 0x44]
sub ebx, ebp
dec ebx
add edx, ecx
mov dword [esp + 0x74], ebx
cmp edx, eax
jbe 0x4b09d0
mov edx, eax
mov ebp, ecx
cmp ecx, edx
ja 0x4b0b50
mov eax, dword [esp + 0x1c]
mov al, byte [eax + ecx - 2]
cmp al, byte [ebx + ecx - 2]
jne 0x4b0b50
mov eax, dword [esp + 0x1c]
mov al, byte [eax + ecx - 1]
cmp al, byte [ebx + ecx - 1]
jne 0x4b0b50
cmp ecx, edx
jae 0x4b0a21
add ecx, dword [esp + 0x1c]
mov edi, ebx
sub edi, dword [esp + 0x1c]
lea esp, [esp]
mov al, byte [ecx]
cmp al, byte [ecx + edi]
jne 0x4b0a1d
inc ebp
inc ecx
cmp ebp, edx
jb 0x4b0a10
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x9c]
lea eax, [ecx - 3]
sub ebp, eax
add edi, 0xfffffffd
lea eax, [esi + 0x548]
add edi, ecx
push eax
mov eax, dword [esp + 0x78]
and edi, dword [esi + 0x4c]
movzx eax, byte [eax + ecx - 3]
push eax
mov eax, dword [esp + 0x88]
movzx eax, byte [eax + ecx]
push eax
mov eax, dword [esp + 0x28]
movzx eax, byte [eax + ecx - 4]
add eax, dword [esp + 0x48]
and eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x94]
shl eax, cl
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x50]
lea eax, [eax + ecx*2]
push eax
call fcn.004b1410
mov ecx, dword [esp + 0x3c]
add esp, 0x10
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x70]
movzx ecx, byte [ecx + str._a_a_a_a_a_a_a_n_n_n_n_n_b_b_b_b_b_b_b_v_v_v_v_v_t_t_t_t_t_t_t_v_v_v_v_v_RK]
shl ecx, 4
add ecx, edi
inc edi
and edi, dword [esi + 0x4c]
movzx ecx, word [esi + ecx*2 + 0x1c98]
shr ecx, 4
add eax, dword [esi + ecx*4 + 0x548]
movzx ecx, word [esi + edi*2 + 0x1e98]
add edx, eax
movzx eax, word [esi + edi*2 + 0x1d18]
xor ecx, 0x7f0
shr ecx, 4
xor eax, 0x7f0
shr eax, 4
mov ecx, dword [esi + ecx*4 + 0x548]
add ecx, dword [esi + eax*4 + 0x548]
movzx eax, word [esi + 0x1c40]
xor eax, 0x7f0
shr eax, 4
add ecx, dword [esi + eax*4 + 0x548]
movzx eax, word [esi + 0x1c58]
shr eax, 4
add ecx, dword [esi + eax*4 + 0x548]
add edx, ecx
lea ecx, [ebx + ebp]
add ecx, dword [esp + 0x34]
cmp dword [esp + 0x28], ecx
jae 0x4b0b15
mov dword [esp + 0x28], ecx
imul eax, edi, 0x110
dec ebp
mov edi, dword [esp + 0x24]
add ecx, 0x5d5
shl ecx, 5
add ecx, esi
add eax, ebp
mov eax, dword [esi + eax*4 + 0x7698]
add eax, edx
cmp eax, dword [ecx]
jae 0x4b0b50
mov dword [ecx], eax
lea eax, [ebx + 1]
mov word [ecx + 6], ax
mov eax, dword [esp + 0x50]
add eax, 4
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], eax
add edi, 2
mov dword [esp + 0x24], edi
cmp edi, dword [esp + 0x38]
je 0x4b0bb1
mov ebp, dword [esi + edi*4 + 0x74c]
cmp ebp, 0x20000
mov edx, dword [esp + 0x20]
mov eax, ebp
sbb ecx, ecx
mov dword [esp + 0x50], ebp
and ecx, 0xfffffff6
add ecx, 0x10
shr eax, cl
movzx eax, byte [eax + esi + 0x2a98]
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x6c], eax
mov ebx, dword [esp + 0x68]
add edx, 0x20
add dword [esp + 0x3c], 0x100
add ebx, 4
mov dword [esp + 0x20], edx
inc ecx
mov edx, dword [esp + 0x64]
jmp 0x4b092a
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
inc ebx
mov dword [esp + 0x34], ebx
cmp ebx, ebp
jne 0x4b0020
jmp 0x4b0c1c
mov eax, dword [esp + 0x40]
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], ecx
jmp 0x4b0c1c
lea eax, [ebx + 0x5d5]
shl eax, 5
mov edi, dword [eax + esi]
mov eax, dword [esp + 0x34]
inc eax
cmp eax, ebp
ja 0x4b0c06
lea ecx, [eax + 0x5d5]
shl ecx, 5
add ecx, esi
mov edx, dword [ecx]
cmp edi, edx
jb 0x4b0bfe
mov edi, edx
mov ebx, eax
inc eax
add ecx, 0x20
cmp eax, ebp
jbe 0x4b0bf4
mov eax, ebx
sub eax, dword [esp + 0x34]
je 0x4b0c1c
add dword [esi + 0x34], eax
push eax
push dword [esi]
mov eax, dword [esi + 0x14]
call eax
add esp, 8
lea eax, [ebp + 0x5d5]
shl eax, 5
add eax, esi
jmp 0x4b0c30
mov dword [eax], 0x40000000
lea eax, [eax - 0x20]
dec ebp
jne 0x4b0c30
push ebx
push esi
call fcn.004af1c0
add esp, 8
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x84
ret