Function at 0x4ad430
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 0x4ad46b
lea eax, [esp + 0x28]
push eax
push esi
call fcn.004b0630
mov dword [esp + 0x44], eax
add esp, 8
mov eax, dword [esp + 0x28]
jmp 0x4ad475
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 0x4ad499
mov dword [esi + 0x90], 0xffffffff
mov eax, 1
pop esi
pop ebx
add esp, 0x84
ret
cmp ebx, 0x111
jbe 0x4ad4a6
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 0x4ad53d
mov al, byte [edx + 1]
cmp al, byte [edi + 1]
jne 0x4ad53d
mov edx, 2
cmp ebx, edx
jbe 0x4ad519
mov eax, dword [esp + 0x4c]
sub edi, eax
lea ecx, [eax + 2]
mov al, byte [ecx]
cmp al, byte [edi + ecx]
jne 0x4ad515
inc edx
inc ecx
cmp edx, ebx
jb 0x4ad508
mov ecx, dword [esp + 0x40]
mov dword [esp + ebp + 0x84], edx
cmp edx, dword [esp + esi + 0x84]
jbe 0x4ad52f
mov dword [esp + 0x20], ecx
mov esi, ebp
cmp edx, 0x111
je 0x4ad55a
mov edx, dword [esp + 0x4c]
jmp 0x4ad548
mov dword [esp + ebp + 0x84], 0
mov eax, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x40], ecx
cmp ecx, 4
jb 0x4ad4d4
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 0x4ad59e
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 0x4ad5db
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 0x4ad5fb
mov ebp, ebx
mov dword [esp + 0x28], ebx
cmp ebp, 2
jae 0x4ad620
cmp byte [esp + 0x13], al
je 0x4ad620
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 0x4ad685
lea eax, [esi + 0x548]
push eax
movzx eax, byte [esp + 0x1f]
push eax
movzx eax, byte [esp + 0x1b]
push eax
push ebx
call fcn.004aee20
add esp, 0x10
mov edi, eax
jmp 0x4ad6b6
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 0x4ad692
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 0x4ad7ae
cmp dword [esp + 0x84], 0
jne 0x4ad7ae
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 0x4ad78b
xor eax, eax
mov dword [esi + 0xbac0], ecx
mov dword [esi + 0xbacc], 0
mov word [esi + 0xbac6], ax
cmp dword [esp + 0x28], 2
jae 0x4ad7ae
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 0x4ad7f0
mov edx, dword [esp + ebx*4 + 0x84]
cmp edx, 2
jb 0x4ad8dc
mov eax, dword [esi + 0x2c]
movzx ecx, word [esi + eax*2 + 0x1c50]
test ebx, ebx
jne 0x4ad837
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 0x4ad893
movzx edi, word [esi + eax*2 + 0x1c68]
xor ecx, 0x7f0
shr ecx, 4
mov ebp, dword [esi + ecx*4 + 0x548]
cmp ebx, 1
jne 0x4ad860
shr edi, 4
add ebp, dword [esi + edi*4 + 0x548]
jmp 0x4ad893
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 0x4ad8cc
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 0x4ad8b5
mov ebp, dword [esp + 0x14]
inc ebx
cmp ebx, 4
jb 0x4ad7f0
mov edi, dword [esp + 0x84]
inc edi
cmp edi, dword [esp + 0x44]
ja 0x4ada11
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 0x4ad921
lea edi, [ebp + 2]
jmp 0x4ad93c
cmp edi, dword [esi + 0x748]
jbe 0x4ad93c
lea esp, [esp]
add ebp, 2
cmp edi, dword [esi + ebp*4 + 0x748]
ja 0x4ad930
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 0x4ad981
mov edx, 3
cmp eax, 0x80
jae 0x4ad99d
shl edx, 7
and eax, 0x7f
add edx, eax
add ebx, dword [esi + edx*4 + 0x1418]
mov edx, dword [esp + 0x40]
jmp 0x4ad9d9
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 0x4ad9ef
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 0x4ada01
add ebp, 2
cmp ebp, dword [esp + 0x24]
je 0x4ada11
mov edx, dword [esp + 0x20]
inc edi
add edx, 4
add ecx, 0x20
jmp 0x4ad95b
mov ebp, dword [esp + 0x28]
mov ebx, 1
mov dword [esp + 0x34], ebx
cmp ebp, ebx
je 0x4ae62c
jmp 0x4ada30
cmp ebx, 0x7c0
jae 0x4ae5e4
lea eax, [esp + 0x40]
push eax
push esi
call fcn.004b0630
mov ecx, eax
add esp, 8
mov dword [esp + 0x80], ecx
cmp ecx, dword [esi + 0x30]
jae 0x4ae5d8
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 0x4adaba
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 0x4adaa6
movzx ebp, byte [eax + 0x54f8a4]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x2c], ebp
jmp 0x4adb80
movzx ebp, byte [eax + 0x54f880]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x2c], ebp
jmp 0x4adb80
movzx ebx, word [edi + 6]
mov ecx, dword [edi + 0xc]
test bx, bx
je 0x4adae2
sub edx, ebx
mov ebp, 8
mov dword [esp + 0x2c], ebp
cmp ebx, 1
jne 0x4adb08
cmp ecx, 4
sbb ebp, ebp
neg ebp
add ebp, 7
jmp 0x4adb04
mov eax, edx
shl eax, 5
movzx eax, word [eax + esi + 0xbaa4]
cmp ecx, 4
jae 0x4adafd
movzx ebp, byte [eax + 0x54f898]
jmp 0x4adb04
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_v0_K]
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 0x4adb5f
test ecx, ecx
jne 0x4adb38
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 0x4adb70
mov edx, dword [eax + 0x14]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x48], edx
cmp ecx, 1
jne 0x4adb50
mov ebx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
jmp 0x4adb74
mov ebx, edx
mov edx, dword [eax + ecx*4 + 0x10]
xor ecx, 1
mov eax, dword [eax + ecx*4 + 0x10]
jmp 0x4adb70
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 0x4adc29
cmp bh, bl
je 0x4adc2d
cmp eax, ecx
jbe 0x4adc34
xor ebp, ebp
jmp 0x4adcdd
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 0x4adc7b
lea eax, [esi + 0x548]
push eax
movzx eax, bh
push eax
movzx eax, bl
push eax
push ebp
call fcn.004aee20
add esp, 0x10
mov ebx, eax
jmp 0x4adcad
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 0x4adc88
mov ebp, dword [esp + 0x38]
add ebp, ebx
mov bl, byte [esp + 0x13]
mov bh, byte [esp + 0x1b]
cmp ebp, dword [edi]
jae 0x4adcdd
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 0x4add27
mov dword [esp + 0x44], eax
cmp ecx, 7
jae 0x4add8c
cmp bh, bl
jne 0x4add8c
mov edx, dword [edi]
cmp dword [esp + 0x7c], edx
jae 0x4add8c
cmp dword [edi + 8], 2
jb 0x4add44
cmp dword [edi + 0xc], 0
je 0x4add8c
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 0x4add8c
xor eax, eax
mov dword [edi], ecx
mov dword [edi + 8], 1
mov dword [edi + 0xc], 0
mov word [edi + 6], ax
jmp 0x4add90
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x44]
cmp edi, 2
jb 0x4ae5c1
mov edx, dword [esi + 0x30]
mov dword [esp + 0x3c], edi
cmp edi, edx
jbe 0x4addac
mov dword [esp + 0x3c], edx
test eax, eax
jne 0x4adedd
test ebp, ebp
je 0x4adedd
cmp bh, bl
je 0x4adedd
cmp edi, 2
mov edi, dword [esp + 0x1c]
jbe 0x4adee1
mov ecx, dword [esp + 0x20]
mov al, byte [edi + 1]
cmp al, byte [ecx + 1]
jne 0x4adee1
mov al, byte [edi + 2]
cmp al, byte [ecx + 2]
jne 0x4adee1
mov eax, dword [esp + 0x44]
inc edx
cmp edx, eax
jbe 0x4addf8
mov edx, eax
mov ebx, 3
cmp edx, ebx
jbe 0x4ade14
add ecx, ebx
sub edi, dword [esp + 0x20]
mov al, byte [edi + ecx]
cmp al, byte [ecx]
jne 0x4ade14
inc ebx
inc ecx
cmp ebx, edx
jb 0x4ade07
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x9c]
inc ecx
and ecx, dword [esi + 0x4c]
movzx edi, byte [eax + 0x54f880]
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 0x4ade9f
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 0x4adee1
mov ecx, 1
mov dword [eax], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], 0
mov word [eax + 6], cx
jmp 0x4adee1
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 0x4ae212
mov al, byte [edi + 1]
cmp al, byte [ebx + 1]
jne 0x4ae212
mov ebp, dword [esp + 0x3c]
mov edx, 2
mov dword [esp + 0x6c], edx
cmp ebp, edx
jbe 0x4adf37
lea ecx, [ebx + 2]
sub edi, ebx
mov al, byte [edi + ecx]
cmp al, byte [ecx]
jne 0x4adf33
inc edx
inc ecx
cmp edx, ebp
jb 0x4adf26
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x34]
add eax, edx
mov dword [esp + 0x38], eax
cmp dword [esp + 0x28], eax
jae 0x4adf4b
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 0x4adf88
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 0x4adfea
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 0x4adfb5
shr ebx, 4
add ebp, dword [esi + ebx*4 + 0x548]
jmp 0x4adfea
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 0x4ae037
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 0x4ae020
test esi, esi
mov esi, dword [esp + 0x98]
jne 0x4ae055
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 0x4ae06f
mov eax, ecx
mov dword [esp + 0x38], ecx
mov edi, dword [esp + 0x1c]
add ebp, 2
cmp ebp, eax
ja 0x4ae20e
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 0x4ae20e
mov al, byte [edi + ebp - 1]
cmp al, byte [ecx - 1]
jne 0x4ae20e
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.004aee20
mov ecx, dword [esp + 0x3c]
add esp, 0x10
mov edx, dword [esp + 0x6c]
movzx ecx, byte [ecx + 0x54f898]
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 0x4ae1c1
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 0x4ae1bd
inc ebp
inc ecx
cmp ebp, edi
jb 0x4ae1b0
mov ebx, dword [esp + 0x24]
sub ebp, edx
lea ecx, [edx + ebp]
add ecx, dword [esp + 0x34]
cmp dword [esp + 0x28], ecx
jae 0x4ae1d4
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 0x4ae20e
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 0x4adef0
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x80]
cmp edi, ecx
jbe 0x4ae25c
xor eax, eax
mov edi, ecx
cmp ecx, dword [esi + 0x748]
jbe 0x4ae24c
jmp 0x4ae240
add eax, 2
cmp ecx, dword [esi + eax*4 + 0x748]
ja 0x4ae240
mov dword [esi + eax*4 + 0x748], ecx
add eax, 2
mov dword [esp + 0x40], eax
jmp 0x4ae260
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x38], eax
cmp edi, ebx
jb 0x4ae5c1
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 0x4ae299
mov dword [esp + 0x28], eax
xor edi, edi
mov dword [esp + 0x24], edi
cmp ebx, dword [esi + 0x748]
jbe 0x4ae2c0
jmp 0x4ae2b0
add edi, 2
cmp ebx, dword [esi + edi*4 + 0x748]
ja 0x4ae2b0
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 0x4ae353
mov edx, 3
cmp ebp, 0x80
jae 0x4ae36e
mov eax, ebp
shl edx, 7
and eax, 0x7f
add edx, eax
add ebx, dword [esi + edx*4 + 0x1418]
jmp 0x4ae38e
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 0x4ae3af
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 0x4ae5a1
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 0x4ae3e0
mov edx, eax
mov ebp, ecx
cmp ecx, edx
ja 0x4ae560
mov eax, dword [esp + 0x1c]
mov al, byte [eax + ecx - 2]
cmp al, byte [ebx + ecx - 2]
jne 0x4ae560
mov eax, dword [esp + 0x1c]
mov al, byte [eax + ecx - 1]
cmp al, byte [ebx + ecx - 1]
jne 0x4ae560
cmp ecx, edx
jae 0x4ae431
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 0x4ae42d
inc ebp
inc ecx
cmp ebp, edx
jb 0x4ae420
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.004aee20
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_v0_K]
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 0x4ae525
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 0x4ae560
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 0x4ae5c1
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 0x4ae33a
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
inc ebx
mov dword [esp + 0x34], ebx
cmp ebx, ebp
jne 0x4ada30
jmp 0x4ae62c
mov eax, dword [esp + 0x40]
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], ecx
jmp 0x4ae62c
lea eax, [ebx + 0x5d5]
shl eax, 5
mov edi, dword [eax + esi]
mov eax, dword [esp + 0x34]
inc eax
cmp eax, ebp
ja 0x4ae616
lea ecx, [eax + 0x5d5]
shl ecx, 5
add ecx, esi
mov edx, dword [ecx]
cmp edi, edx
jb 0x4ae60e
mov edi, edx
mov ebx, eax
inc eax
add ecx, 0x20
cmp eax, ebp
jbe 0x4ae604
mov eax, ebx
sub eax, dword [esp + 0x34]
je 0x4ae62c
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 0x4ae640
mov dword [eax], 0x40000000
lea eax, [eax - 0x20]
dec ebp
jne 0x4ae640
push ebx
push esi
call fcn.004acbd0
add esp, 8
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x84
ret