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

Disassembly:
sub esp, 0x78
push ebp
mov ebp, dword [esp + 0x80]
push esi
mov ecx, dword [ebp + 0x490]
cmp dword [ebp + 0x48c], ecx
je 0x40d9bb
lea esi, [ecx + ecx*2]
add esi, esi
mov eax, dword [ebp + esi*8 + 0x4b8]
mov edx, dword [ebp + esi*8 + 0x4bc]
sub eax, ecx
mov ecx, dword [esp + 0x8c]
mov dword [ecx], edx
mov ecx, dword [ebp + esi*8 + 0x4b8]
pop esi
mov dword [ebp + 0x490], ecx
pop ebp
add esp, 0x78
ret
cmp dword [ebp + 0x31738], 0
mov dword [ebp + 0x48c], 0
mov dword [ebp + 0x490], 0
jne 0x40d9f0
lea eax, [esp + 0x44]
push eax
push ebp
call fcn.00411000
mov dword [esp + 0x24], eax
add esp, 8
mov eax, dword [esp + 0x44]
jmp 0x40da00
mov eax, dword [ebp + 0x494]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x498]
push edi
mov edi, dword [ebp + 0x49c]
mov dword [esp + 0x1c], eax
cmp edi, 2
jae 0x40da29
mov eax, dword [esp + 0x90]
pop edi
pop esi
pop ebp
mov dword [eax], 0xffffffff
mov eax, 1
add esp, 0x78
ret
cmp edi, 0x111
jbe 0x40da36
mov edi, 0x111
push dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
call eax
add esp, 4
mov dword [esp + 0x24], 0
xor ecx, ecx
mov dword [esp + 0x34], ecx
lea edx, [eax - 1]
mov al, byte [edx]
mov byte [esp + 0xe], al
lea eax, [ebp + 0x3173c]
mov dword [esp + 0x28], edx
xor ebp, ebp
mov dword [esp + 0x48], eax
push ebx
lea esp, [esp]
lea ebx, [ecx*4]
mov esi, edx
mov eax, dword [ebx + eax]
sub esi, eax
dec esi
mov dword [esp + ebx + 0x68], eax
mov al, byte [esp + 0x12]
cmp al, byte [esi]
jne 0x40dace
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x40dace
mov edx, 2
cmp edi, edx
jbe 0x40dab6
mov eax, dword [esp + 0x2c]
sub esi, eax
lea ecx, [eax + 2]
mov al, byte [ecx]
cmp al, byte [esi + ecx]
jne 0x40dab2
inc edx
inc ecx
cmp edx, edi
jb 0x40daa5
mov ecx, dword [esp + 0x38]
mov dword [esp + ebx + 0x78], edx
cmp edx, dword [esp + ebp + 0x78]
mov edx, dword [esp + 0x2c]
jbe 0x40dad6
mov esi, ecx
mov ebp, ebx
mov dword [esp + 0x28], esi
jmp 0x40dada
mov dword [esp + ebx + 0x78], 0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
inc ecx
mov dword [esp + 0x38], ecx
cmp ecx, 4
jb 0x40da70
mov ebp, dword [esp + 0x8c]
mov ebx, dword [esp + esi*4 + 0x78]
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 0x31734]
cmp ebx, eax
jb 0x40db2d
mov eax, dword [esp + 0x94]
lea ecx, [ebx - 1]
mov dword [eax], esi
test ecx, ecx
je 0x40db23
add dword [ebp + 0x31738], ecx
push ecx
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
call ecx
add esp, 8
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x78
ret
mov edi, dword [esp + 0x24]
cmp edi, eax
jb 0x40db6f
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x94]
mov ecx, dword [ebp + ecx*4 + 0x30e9c]
add ecx, 4
mov dword [eax], ecx
lea eax, [edi - 1]
test eax, eax
je 0x40db65
add dword [ebp + 0x31738], eax
push eax
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
call eax
add esp, 8
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x78
ret
mov eax, edx
sub eax, dword [esp + 0x68]
mov al, byte [eax - 1]
mov byte [esp + 0x13], al
cmp edi, 2
jae 0x40dba6
cmp byte [esp + 0x12], al
je 0x40dba6
cmp ebx, 2
jae 0x40dba6
mov eax, dword [esp + 0x94]
pop ebx
pop edi
pop esi
mov dword [eax], 0xffffffff
mov eax, 1
pop ebp
add esp, 0x78
ret
mov eax, dword [ebp + 0x3174c]
mov ecx, 8
mov dword [ebp + 0x4a4], eax
sub cl, byte [ebp + 0x32398]
mov ebx, dword [ebp + 0x323a8]
mov eax, dword [esp + 0x90]
and ebx, eax
movzx edx, byte [edx - 1]
and eax, dword [ebp + 0x323a4]
mov esi, dword [ebp + 0x3174c]
shr edx, cl
mov ecx, dword [ebp + 0x32398]
shl eax, cl
add edx, eax
mov dword [esp + 0x2c], ebx
imul ecx, edx, 0x600
lea eax, [ebp + 0x30ca0]
push eax
add ecx, dword [ebp + 0x323ac]
cmp esi, 7
jb 0x40dc1b
movzx eax, byte [esp + 0x17]
push eax
movzx eax, byte [esp + 0x1a]
push eax
push ecx
call fcn.0040f640
add esp, 0x10
jmp 0x40dc2a
movzx eax, byte [esp + 0x16]
push eax
push ecx
call fcn.0040f5f0
add esp, 0xc
mov ecx, eax
shl esi, 4
add esi, ebx
movzx eax, word [ebp + esi*2 + 0x323b0]
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30ca0]
add eax, ecx
mov dword [ebp + 0x4ec], 0xffffffff
mov dword [ebp + 0x4d0], eax
mov dword [ebp + 0x4d8], 0
mov edx, dword [ebp + 0x3174c]
mov eax, edx
shl eax, 4
add eax, ebx
movzx eax, word [ebp + eax*2 + 0x323b0]
xor eax, 0x7f0
shr eax, 4
mov ecx, dword [ebp + eax*4 + 0x30ca0]
movzx eax, word [ebp + edx*2 + 0x32530]
xor eax, 0x7f0
mov dword [esp + 0x48], ecx
shr eax, 4
mov esi, dword [ebp + eax*4 + 0x30ca0]
mov al, byte [esp + 0x13]
add esi, ecx
mov dword [esp + 0x4c], esi
cmp al, byte [esp + 0x12]
jne 0x40dcfd
mov eax, edx
shl eax, 4
add eax, ebx
movzx ecx, word [ebp + eax*2 + 0x32590]
movzx eax, word [ebp + edx*2 + 0x32548]
shr ecx, 4
shr eax, 4
mov ecx, dword [ebp + ecx*4 + 0x30ca0]
add ecx, dword [ebp + eax*4 + 0x30ca0]
add ecx, esi
cmp ecx, dword [ebp + 0x4d0]
jae 0x40dcfd
mov dword [ebp + 0x4d0], ecx
mov dword [ebp + 0x4ec], 0
mov dword [ebp + 0x4d8], 0
mov edx, dword [esp + 0x18]
cmp edi, edx
jb 0x40dd0b
mov edx, edi
mov dword [esp + 0x18], edx
cmp edx, 2
jae 0x40dd2c
mov eax, dword [esp + 0x94]
mov ecx, dword [ebp + 0x4ec]
pop ebx
pop edi
pop esi
mov dword [eax], ecx
mov eax, 1
pop ebp
add esp, 0x78
ret
mov eax, dword [esp + 0x68]
mov ecx, edx
mov dword [ebp + 0x4e8], 0
mov dword [ebp + 0x4c0], eax
mov eax, dword [esp + 0x6c]
mov dword [ebp + 0x4c4], eax
mov eax, dword [esp + 0x70]
mov dword [ebp + 0x4c8], eax
mov eax, dword [esp + 0x74]
mov dword [ebp + 0x4cc], eax
lea eax, [edx + edx*2]
shl eax, 4
add eax, 0x4a0
add eax, ebp
lea ecx, [ecx]
dec ecx
mov dword [eax], 0x40000000
lea eax, [eax - 0x30]
cmp ecx, 2
jae 0x40dd70
xor edi, edi
mov esi, dword [esp + edi*4 + 0x78]
cmp esi, 2
jb 0x40ddee
push ebx
push dword [ebp + 0x3174c]
push edi
push ebp
call fcn.0040efa0
imul ecx, dword [esp + 0x3c], 0x110
lea edx, [ebp + 0x37658]
mov ebx, eax
add esp, 0x10
add ebx, dword [esp + 0x4c]
lea eax, [ebp + 0x4bc]
add ecx, esi
lea edx, [edx + ecx*4]
lea ecx, [esi + esi*2]
shl ecx, 4
add eax, ecx
mov ecx, dword [edx]
add ecx, ebx
cmp ecx, dword [eax - 0x1c]
jae 0x40ddde
mov dword [eax - 0x1c], ecx
mov dword [eax - 4], 0
mov dword [eax], edi
mov dword [eax - 0x14], 0
dec esi
sub edx, 4
sub eax, 0x30
cmp esi, 2
jae 0x40ddc2
mov ebx, dword [esp + 0x2c]
inc edi
cmp edi, 4
jb 0x40dd81
mov eax, dword [ebp + 0x3174c]
mov edi, dword [esp + 0x78]
movzx eax, word [ebp + eax*2 + 0x32530]
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30ca0]
add eax, dword [esp + 0x48]
mov dword [esp + 0x4c], eax
cmp edi, 2
jb 0x40de20
inc edi
jmp 0x40de25
mov edi, 2
cmp edi, dword [esp + 0x24]
ja 0x40df28
xor ebx, ebx
cmp edi, dword [ebp + 0x30ea0]
jbe 0x40de4c
lea esp, [esp]
add ebx, 2
cmp edi, dword [ebp + ebx*4 + 0x30ea0]
ja 0x40de40
imul eax, dword [esp + 0x2c], 0x110
lea edx, [ebp + 0x32e10]
lea ecx, [ebp + 0x4bc]
add eax, edi
lea edx, [edx + eax*4]
lea eax, [edi + edi*2]
shl eax, 4
add ecx, eax
mov esi, dword [edx]
add esi, dword [esp + 0x4c]
mov eax, dword [ebp + ebx*4 + 0x30ea4]
mov dword [esp + 0x34], edx
lea edx, [edi - 2]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], eax
cmp edi, 5
jb 0x40de93
mov edx, 3
cmp eax, 0x80
jae 0x40dea8
shl edx, 7
add edx, eax
add esi, dword [ebp + edx*4 + 0x31b50]
jmp 0x40deeb
mov ecx, 0x1ffff
shl edx, 5
sub ecx, eax
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
shr eax, cl
add edx, ecx
mov ecx, dword [esp + 0x38]
and ecx, 0xf
movzx eax, byte [eax + ebp + 0x304a0]
lea eax, [eax + edx*2]
mov eax, dword [ebp + eax*4 + 0x31750]
add eax, dword [ebp + ecx*4 + 0x32350]
mov ecx, dword [esp + 0x30]
add esi, eax
mov eax, dword [esp + 0x38]
cmp esi, dword [ecx - 0x1c]
jae 0x40df06
add eax, 4
mov dword [ecx - 0x1c], esi
mov dword [ecx - 4], 0
mov dword [ecx], eax
mov dword [ecx - 0x14], 0
cmp edi, dword [ebp + ebx*4 + 0x30ea0]
jne 0x40df18
add ebx, 2
cmp ebx, dword [esp + 0x20]
je 0x40df28
mov edx, dword [esp + 0x34]
inc edi
add edx, 4
add ecx, 0x30
jmp 0x40de6d
mov edi, 1
mov dword [esp + 0x14], edi
cmp dword [esp + 0x18], edi
je 0x40ec29
jmp 0x40df40
lea eax, [esp + 0x38]
push eax
push ebp
call fcn.00411000
mov ecx, eax
add esp, 8
mov dword [esp + 0x58], ecx
cmp ecx, dword [ebp + 0x31734]
jae 0x40ec19
inc dword [esp + 0x90]
lea ebx, [edi + edi*2]
shl ebx, 4
add ebx, ebp
mov edx, dword [ebx + 0x4a8]
mov ecx, dword [ebx + 0x4b8]
test edx, edx
je 0x40dfd9
dec ecx
cmp dword [ebx + 0x4ac], 0
je 0x40dfc4
mov eax, dword [ebx + 0x4b0]
lea eax, [eax + eax*2]
add eax, eax
cmp dword [ebx + 0x4b4], 4
mov esi, dword [ebp + eax*8 + 0x4a4]
jae 0x40dfb4
mov esi, dword [esi*4 + 0x4459e4]
mov esi, dword [esi*4 + 0x445984]
jmp 0x40dfe5
mov esi, dword [esi*4 + 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]
mov esi, dword [esi*4 + 0x445984]
jmp 0x40dfe5
lea eax, [ecx + ecx*2]
add eax, eax
mov esi, dword [ebp + eax*8 + 0x4a4]
mov esi, dword [esi*4 + 0x445984]
jmp 0x40dfe5
lea eax, [ecx + ecx*2]
add eax, eax
mov esi, dword [ebp + eax*8 + 0x4a4]
lea eax, [edi - 1]
cmp ecx, eax
jne 0x40e015
cmp dword [ebx + 0x4bc], 0
jne 0x40e005
mov edi, dword [esi*4 + 0x445a14]
mov dword [esp + 0x1c], edi
jmp 0x40e0d3
mov edi, dword [esi*4 + 0x445984]
mov dword [esp + 0x1c], edi
jmp 0x40e0d3
test edx, edx
je 0x40e037
cmp dword [ebx + 0x4ac], 0
je 0x40e037
mov ecx, dword [ebx + 0x4b0]
mov edx, dword [ebx + 0x4b4]
mov edi, dword [esi*4 + 0x4459e4]
jmp 0x40e052
mov edx, dword [ebx + 0x4bc]
cmp edx, 4
jae 0x40e04b
mov edi, dword [esi*4 + 0x4459e4]
jmp 0x40e052
mov edi, dword [esi*4 + 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]
lea eax, [ecx + ecx*2]
mov dword [esp + 0x1c], edi
shl eax, 4
lea ecx, [ebp + 0x4a0]
add ecx, eax
mov dword [esp + 0x4c], ecx
cmp edx, 4
jae 0x40e0b7
mov eax, dword [ecx + edx*4 + 0x20]
mov dword [esp + 0x68], eax
mov eax, 1
cmp edx, eax
jb 0x40e09b
lea esi, [ecx + 0x20]
mov ecx, edx
lea eax, [edx + 1]
lea edi, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
cmp eax, 4
jb 0x40e097
mov edi, dword [esp + 0x1c]
jmp 0x40e0d3
mov ecx, dword [esp + 0x4c]
lea esi, [ecx + 0x20]
mov ecx, 4
lea edi, [esp + 0x68]
sub ecx, eax
lea edi, [edi + eax*4]
lea esi, [esi + eax*4]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
jmp 0x40e0d3
lea eax, [edx - 4]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x68]
mov dword [ebx + 0x4a4], edi
mov dword [ebx + 0x4c0], eax
mov eax, dword [esp + 0x6c]
mov dword [ebx + 0x4c4], eax
mov eax, dword [esp + 0x70]
mov dword [ebx + 0x4c8], eax
mov eax, dword [esp + 0x74]
mov dword [ebx + 0x4cc], eax
mov esi, dword [ebx + 0x4a0]
push dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], 0
call eax
add esp, 4
lea edx, [eax - 1]
mov al, byte [edx]
mov ecx, edx
sub ecx, dword [esp + 0x68]
mov byte [esp + 0x12], al
dec ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
mov al, byte [ecx]
mov ecx, dword [ebp + 0x323a8]
and ecx, dword [esp + 0x90]
mov byte [esp + 0x13], al
mov eax, edi
shl eax, 4
add eax, ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x40], eax
mov ecx, 8
sub cl, byte [ebp + 0x32398]
movzx eax, word [ebp + eax*2 + 0x323b0]
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30ca0]
add eax, esi
mov dword [esp + 0x2c], eax
lea eax, [edx - 1]
movzx edx, byte [eax]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x90]
and eax, dword [ebp + 0x323a4]
shr edx, cl
mov ecx, dword [ebp + 0x32398]
shl eax, cl
add edx, eax
imul edi, edx, 0x600
add edi, dword [ebp + 0x323ac]
cmp dword [esp + 0x1c], 7
jb 0x40e1d1
lea eax, [ebp + 0x30ca0]
push eax
movzx eax, byte [esp + 0x17]
push eax
movzx eax, byte [esp + 0x1a]
push eax
push edi
call fcn.0040f640
add esp, 0x10
mov esi, eax
jmp 0x40e20f
movzx edx, byte [esp + 0x12]
xor esi, esi
or edx, 0x100
mov edi, edi
mov eax, edx
shr eax, 8
movzx ecx, word [edi + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
add esi, dword [ebp + ecx*4 + 0x30ca0]
cmp edx, 0x10000
jb 0x40e1e0
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
add eax, esi
mov dword [esp + 0x2c], eax
cmp eax, dword [ebx + 0x4d0]
jae 0x40e24c
mov dword [ebx + 0x4d0], eax
mov edx, 1
mov dword [ebx + 0x4e8], edi
mov dword [ebx + 0x4ec], 0xffffffff
mov dword [ebx + 0x4d8], 0
jmp 0x40e250
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
movzx eax, word [ebp + esi*2 + 0x323b0]
xor eax, 0x7f0
shr eax, 4
mov ecx, dword [ebp + eax*4 + 0x30ca0]
mov eax, dword [esp + 0x1c]
add ecx, dword [esp + 0x3c]
mov dword [esp + 0x5c], ecx
movzx eax, word [ebp + eax*2 + 0x32530]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30ca0]
add eax, ecx
mov cl, byte [esp + 0x12]
mov ch, byte [esp + 0x13]
mov dword [esp + 0x3c], eax
cmp ch, cl
jne 0x40e312
cmp dword [ebx + 0x4e8], edi
jae 0x40e2b1
cmp dword [ebx + 0x4ec], 0
je 0x40e312
mov eax, dword [esp + 0x1c]
movzx ecx, word [ebp + eax*2 + 0x32548]
movzx eax, word [ebp + esi*2 + 0x32590]
shr ecx, 4
shr eax, 4
mov ecx, dword [ebp + ecx*4 + 0x30ca0]
add ecx, dword [ebp + eax*4 + 0x30ca0]
add ecx, dword [esp + 0x3c]
cmp ecx, dword [ebx + 0x4d0]
ja 0x40e30a
mov dword [ebx + 0x4d0], ecx
mov edx, 1
mov dword [ebx + 0x4e8], edi
mov dword [ebx + 0x4ec], 0
mov dword [ebx + 0x4d8], 0
mov ch, byte [esp + 0x13]
mov cl, byte [esp + 0x12]
mov ebx, dword [ebp + 0x49c]
mov eax, 0xfff
sub eax, edi
mov dword [esp + 0x34], ebx
cmp eax, ebx
jae 0x40e32d
mov ebx, eax
mov dword [esp + 0x34], eax
cmp ebx, 2
jb 0x40ec08
mov esi, dword [ebp + 0x31734]
mov dword [esp + 0x30], ebx
cmp ebx, esi
jbe 0x40e348
mov dword [esp + 0x30], esi
test edx, edx
jne 0x40e49a
cmp ch, cl
je 0x40e49a
inc esi
cmp esi, ebx
jbe 0x40e35f
mov esi, ebx
mov edx, 1
cmp esi, edx
jbe 0x40e382
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
sub ebx, eax
lea ecx, [eax + 1]
mov al, byte [ecx]
cmp al, byte [ebx + ecx]
jne 0x40e382
inc edx
inc ecx
cmp edx, esi
jb 0x40e375
lea ebx, [edx - 1]
cmp ebx, 2
jb 0x40e49a
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x90]
mov esi, dword [esp + 0x14]
inc edi
and edi, dword [ebp + 0x323a8]
inc esi
mov edx, dword [eax*4 + 0x445984]
add esi, ebx
mov eax, edx
mov dword [esp + 0x40], edi
shl eax, 4
add eax, edi
mov dword [esp + 0x44], eax
movzx ecx, word [ebp + eax*2 + 0x323b0]
movzx eax, word [ebp + edx*2 + 0x32530]
xor ecx, 0x7f0
xor eax, 0x7f0
shr ecx, 4
shr eax, 4
mov edx, dword [ebp + ecx*4 + 0x30ca0]
add edx, dword [ebp + eax*4 + 0x30ca0]
add edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
cmp eax, esi
jae 0x40e41d
lea eax, [eax + eax*2]
mov ecx, esi
sub ecx, dword [esp + 0x18]
shl eax, 4
add eax, 0x4a0
add eax, ebp
add dword [esp + 0x18], ecx
nop
mov dword [eax + 0x30], 0x40000000
lea eax, [eax + 0x30]
dec ecx
jne 0x40e410
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x1c]
movzx ecx, word [ebp + eax*2 + 0x32590]
mov eax, dword [edi*4 + 0x445984]
xor ecx, 0x7f0
shr ecx, 4
movzx eax, word [ebp + eax*2 + 0x32548]
mov ecx, dword [ebp + ecx*4 + 0x30ca0]
shr eax, 4
add ecx, dword [ebp + eax*4 + 0x30ca0]
imul eax, dword [esp + 0x40], 0x110
add eax, ebx
add ecx, dword [ebp + eax*4 + 0x37658]
lea eax, [esi + esi*2]
add ecx, edx
shl eax, 4
lea edx, [ebp + 0x4a0]
add edx, eax
cmp ecx, dword [edx]
jae 0x40e49a
mov eax, dword [esp + 0x14]
inc eax
mov dword [edx], ecx
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], 0
mov dword [edx + 8], 1
mov dword [edx + 0xc], 0
mov ecx, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x2c], 2
mov dword [esp + 0x24], edx
lea esp, [esp]
mov al, byte [ecx]
mov ebx, ecx
sub ebx, dword [esp + edx*4 + 0x68]
dec ebx
mov dword [esp + 0x40], ebx
cmp al, byte [ebx]
jne 0x40e7cd
mov al, byte [ecx + 1]
cmp al, byte [ebx + 1]
jne 0x40e7cd
mov edi, dword [esp + 0x30]
mov esi, 2
cmp edi, esi
jbe 0x40e4f8
mov edx, dword [esp + 0x20]
lea ecx, [ebx + 2]
sub edx, ebx
mov al, byte [edx + ecx]
cmp al, byte [ecx]
jne 0x40e4f4
inc esi
inc ecx
cmp esi, edi
jb 0x40e4e7
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add edi, esi
cmp eax, edi
jae 0x40e52d
lea eax, [eax + eax*2]
mov ecx, edi
sub ecx, dword [esp + 0x18]
shl eax, 4
add eax, 0x4a0
add eax, ebp
add dword [esp + 0x18], ecx
lea ecx, [ecx]
mov dword [eax + 0x30], 0x40000000
lea eax, [eax + 0x30]
dec ecx
jne 0x40e520
mov ebx, dword [esp + 0x48]
push ebx
push dword [esp + 0x20]
mov dword [esp + 0x30], esi
push edx
push ebp
call fcn.0040efa0
add eax, dword [esp + 0x4c]
add esp, 0x10
mov dword [esp + 0x44], eax
imul eax, ebx, 0x110
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x50], eax
lea ecx, [eax + 0xdd96]
add ecx, esi
lea edx, [ecx*4]
lea ecx, [edi + edi*2]
add edx, ebp
mov edi, dword [esp + 0x24]
shl ecx, 4
add ecx, 0x4bc
add ecx, ebp
lea ecx, [ecx]
mov eax, dword [edx]
add eax, dword [esp + 0x44]
cmp eax, dword [ecx - 0x1c]
jae 0x40e59a
mov dword [ecx - 0x1c], eax
mov dword [ecx - 4], ebx
mov dword [ecx], edi
mov dword [ecx - 0x14], 0
dec esi
sub edx, 4
sub ecx, 0x30
cmp esi, 2
jae 0x40e580
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
test edx, edx
jne 0x40e5bd
lea ecx, [eax + 1]
mov dword [esp + 0x2c], ecx
mov esi, dword [ebp + 0x31734]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x34]
add esi, ecx
cmp esi, eax
jbe 0x40e5d2
mov esi, eax
cmp ecx, esi
jae 0x40e5f1
mov edi, dword [esp + 0x20]
lea edx, [ecx + ebx]
sub edi, ebx
nop
mov al, byte [edi + edx]
cmp al, byte [edx]
jne 0x40e5ed
inc ecx
inc edx
cmp ecx, esi
jb 0x40e5e0
mov edx, dword [esp + 0x24]
or eax, 0xffffffff
sub eax, dword [esp + 0x28]
add ecx, eax
mov dword [esp + 0x54], ecx
cmp ecx, 2
jb 0x40e7c9
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x90]
mov ebx, dword [ebp + 0x323a8]
add esi, ecx
mov edi, dword [eax*4 + 0x4459e4]
lea eax, [ebp + 0x30ca0]
push eax
mov eax, dword [esp + 0x44]
movzx eax, byte [ecx + eax]
push eax
mov eax, dword [esp + 0x28]
movzx eax, byte [ecx + eax]
push eax
mov eax, dword [esp + 0x58]
movzx edx, byte [eax + ecx]
mov ecx, 8
sub cl, byte [ebp + 0x32398]
mov eax, esi
and eax, dword [ebp + 0x323a4]
shr edx, cl
mov ecx, dword [ebp + 0x32398]
shl eax, cl
add edx, eax
imul eax, edx, 0x600
add eax, dword [ebp + 0x323ac]
push eax
call fcn.0040f640
and esi, ebx
mov ecx, edi
shl ecx, 4
mov edx, eax
add esi, ecx
mov edi, dword [edi*4 + 0x445984]
mov eax, edi
add esp, 0x10
shl eax, 4
movzx ecx, word [ebp + esi*2 + 0x323b0]
mov esi, dword [esp + 0x28]
shr ecx, 4
add edx, dword [ebp + ecx*4 + 0x30ca0]
mov ecx, dword [esp + 0x50]
add ecx, esi
add edx, dword [ebp + ecx*4 + 0x37658]
mov ecx, dword [esp + 0x90]
add edx, dword [esp + 0x44]
inc ecx
add ecx, esi
mov dword [esp + 0x44], edi
and ecx, ebx
add eax, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x50], eax
movzx ecx, word [ebp + eax*2 + 0x323b0]
movzx eax, word [ebp + edi*2 + 0x32530]
xor ecx, 0x7f0
mov edi, dword [esp + 0x14]
xor eax, 0x7f0
shr ecx, 4
inc edi
shr eax, 4
mov ebx, dword [ebp + ecx*4 + 0x30ca0]
add ebx, dword [ebp + eax*4 + 0x30ca0]
add ebx, edx
mov edx, dword [esp + 0x54]
lea eax, [edx + esi]
mov esi, dword [esp + 0x18]
add edi, eax
cmp esi, edi
jae 0x40e73d
lea eax, [esi + esi*2]
mov ecx, edi
shl eax, 4
sub ecx, esi
add eax, 0x4a0
add eax, ebp
add esi, ecx
mov dword [esp + 0x18], esi
mov dword [eax + 0x30], 0x40000000
lea eax, [eax + 0x30]
dec ecx
jne 0x40e730
mov eax, dword [esp + 0x50]
movzx ecx, word [ebp + eax*2 + 0x32590]
mov eax, dword [esp + 0x44]
xor ecx, 0x7f0
shr ecx, 4
movzx eax, word [ebp + eax*2 + 0x32548]
mov esi, dword [ebp + ecx*4 + 0x30ca0]
lea ecx, [ebp + 0x4a0]
shr eax, 4
add esi, dword [ebp + eax*4 + 0x30ca0]
imul eax, dword [esp + 0x40], 0x110
add eax, edx
mov edx, dword [esp + 0x24]
add esi, dword [ebp + eax*4 + 0x37658]
lea eax, [edi + edi*2]
shl eax, 4
add esi, ebx
mov ebx, dword [esp + 0x14]
add ecx, eax
cmp esi, dword [ecx]
jae 0x40e7c3
mov eax, dword [esp + 0x28]
inc eax
mov dword [ecx], esi
add eax, ebx
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x18], eax
mov dword [ecx + 8], 1
mov dword [ecx + 0xc], 1
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], edx
mov ecx, dword [esp + 0x20]
jmp 0x40e7d1
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
inc edx
mov dword [esp + 0x24], edx
cmp edx, 4
jb 0x40e4b0
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x58]
cmp ecx, edi
jbe 0x40e81c
xor eax, eax
mov ecx, edi
cmp edi, dword [ebp + 0x30ea0]
jbe 0x40e80c
jmp 0x40e800
add eax, 2
cmp edi, dword [ebp + eax*4 + 0x30ea0]
ja 0x40e800
mov dword [ebp + eax*4 + 0x30ea0], edi
add eax, 2
mov dword [esp + 0x38], eax
jmp 0x40e820
mov eax, dword [esp + 0x38]
mov dword [esp + 0x44], eax
cmp ecx, dword [esp + 0x2c]
jb 0x40ec04
mov eax, dword [esp + 0x1c]
add ecx, ebx
mov edx, dword [esp + 0x18]
movzx eax, word [ebp + eax*2 + 0x32530]
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30ca0]
add dword [esp + 0x5c], eax
cmp edx, ecx
jae 0x40e87d
lea eax, [edx + edx*2]
sub ecx, edx
shl eax, 4
add eax, 0x4a0
add eax, ebp
add edx, ecx
mov dword [esp + 0x18], edx
jmp 0x40e870
mov dword [eax + 0x30], 0x40000000
lea eax, [eax + 0x30]
dec ecx
jne 0x40e870
mov edx, dword [esp + 0x2c]
xor esi, esi
mov dword [esp + 0x30], esi
cmp edx, dword [ebp + 0x30ea0]
jbe 0x40e8a0
nop
add esi, 2
cmp edx, dword [ebp + esi*4 + 0x30ea0]
ja 0x40e890
mov dword [esp + 0x30], esi
lea edi, [esi*4]
mov ecx, 0x1ffff
mov ebx, dword [edi + ebp + 0x30ea4]
lea esi, [ebp + 0x4bc]
sub ecx, ebx
mov dword [esp + 0x40], ebx
shr ecx, 0x1f
mov eax, ebx
neg ecx
and ecx, 0xa
add ecx, 6
shr eax, cl
movzx eax, byte [eax + ebp + 0x304a0]
lea eax, [eax + ecx*2]
mov dword [esp + 0x3c], eax
lea ecx, [edx + 1]
imul eax, dword [esp + 0x48], 0x110
add eax, edx
lea edx, [eax*4 + 0x32e10]
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x2c]
add edx, ebp
lea eax, [eax + eax*2]
shl eax, 4
add esi, eax
mov dword [esp + 0x24], edx
lea eax, [ecx - 1]
mov edx, dword [edx]
add edx, dword [esp + 0x5c]
cmp eax, 5
mov dword [esp + 0x50], eax
lea eax, [ecx - 3]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ecx
jb 0x40e929
mov eax, 3
cmp ebx, 0x80
jae 0x40e93f
shl eax, 7
add eax, ebx
add edx, dword [ebp + eax*4 + 0x31b50]
jmp 0x40e95f
shl eax, 6
mov ecx, ebx
add eax, dword [esp + 0x3c]
and ecx, 0xf
mov eax, dword [ebp + eax*4 + 0x31750]
add eax, dword [ebp + ecx*4 + 0x32350]
mov ecx, dword [esp + 0x28]
add edx, eax
mov dword [esp + 0x48], edx
cmp edx, dword [esi - 0x1c]
jae 0x40e97e
mov eax, dword [esp + 0x14]
mov dword [esi - 4], eax
lea eax, [ebx + 4]
mov dword [esi - 0x1c], edx
mov dword [esi], eax
mov dword [esi - 0x14], 0
lea eax, [ecx - 1]
cmp eax, dword [edi + ebp + 0x30ea0]
jne 0x40ebf4
mov edi, dword [esp + 0x20]
mov edx, ecx
mov esi, dword [ebp + 0x31734]
mov eax, edi
sub eax, ebx
add esi, ecx
mov ebx, dword [esp + 0x34]
dec eax
mov dword [esp + 0x58], eax
cmp esi, ebx
jbe 0x40e9af
mov esi, ebx
cmp ecx, esi
jae 0x40e9c8
add ecx, eax
sub edi, eax
mov al, byte [edi + ecx]
cmp al, byte [ecx]
jne 0x40e9c4
inc edx
inc ecx
cmp edx, esi
jb 0x40e9b7
mov ecx, dword [esp + 0x28]
or eax, 0xffffffff
lea esi, [ecx - 1]
sub eax, esi
add edx, eax
mov dword [esp + 0x54], edx
cmp edx, 2
jb 0x40eb98
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x90]
mov ebx, dword [ebp + 0x323a8]
dec edx
add edx, ecx
mov esi, ebx
mov edi, dword [eax*4 + 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]
and esi, edx
and edx, dword [ebp + 0x323a4]
lea eax, [ebp + 0x30ca0]
push eax
mov eax, dword [esp + 0x5c]
movzx eax, byte [eax + ecx - 1]
push eax
mov eax, dword [esp + 0x54]
movzx eax, byte [eax + ecx]
push eax
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax + ecx - 2]
mov ecx, 8
sub cl, byte [ebp + 0x32398]
shr eax, cl
mov ecx, dword [ebp + 0x32398]
shl edx, cl
add eax, edx
imul eax, eax, 0x600
add eax, dword [ebp + 0x323ac]
push eax
call fcn.0040f640
mov ecx, edi
mov edx, eax
mov edi, dword [edi*4 + 0x445984]
add esp, 0x10
shl ecx, 4
mov eax, edi
add ecx, esi
shl eax, 4
movzx ecx, word [ebp + ecx*2 + 0x323b0]
shr ecx, 4
add edx, dword [ebp + ecx*4 + 0x30ca0]
lea ecx, [esi + 1]
add edx, dword [esp + 0x48]
and ecx, ebx
mov ebx, dword [esp + 0x50]
add eax, ecx
mov esi, dword [esp + 0x18]
mov dword [esp + 0x60], ecx
movzx ecx, word [ebp + edi*2 + 0x32530]
mov dword [esp + 0x58], eax
xor ecx, 0x7f0
movzx eax, word [ebp + eax*2 + 0x323b0]
shr ecx, 4
xor eax, 0x7f0
shr eax, 4
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp + ecx*4 + 0x30ca0]
inc edi
add ecx, dword [ebp + eax*4 + 0x30ca0]
add ecx, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x64], ecx
lea eax, [edx + ebx]
add edi, eax
cmp esi, edi
jae 0x40eb0d
lea eax, [esi + esi*2]
mov ecx, edi
shl eax, 4
sub ecx, esi
add eax, 0x4a0
add eax, ebp
add esi, ecx
mov dword [esp + 0x18], esi
jmp 0x40eb00
mov dword [eax + 0x30], 0x40000000
lea eax, [eax + 0x30]
dec ecx
jne 0x40eb00
mov eax, dword [esp + 0x58]
movzx ecx, word [ebp + eax*2 + 0x32590]
mov eax, dword [esp + 0x48]
xor ecx, 0x7f0
shr ecx, 4
movzx eax, word [ebp + eax*2 + 0x32548]
mov esi, dword [ebp + ecx*4 + 0x30ca0]
lea ecx, [ebp + 0x4a0]
shr eax, 4
add esi, dword [ebp + eax*4 + 0x30ca0]
imul eax, dword [esp + 0x60], 0x110
add eax, edx
add esi, dword [ebp + eax*4 + 0x37658]
lea eax, [edi + edi*2]
add esi, dword [esp + 0x64]
mov edi, dword [esp + 0x14]
shl eax, 4
add ecx, eax
cmp esi, dword [ecx]
jae 0x40eb9c
lea eax, [edi + 1]
mov dword [ecx], esi
add eax, ebx
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x40]
add eax, 4
mov dword [ecx + 8], 1
mov dword [ecx + 0xc], 1
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], eax
jmp 0x40eb9c
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
add esi, 2
mov dword [esp + 0x30], esi
cmp esi, dword [esp + 0x44]
je 0x40ec08
lea edi, [esi*4]
mov esi, dword [esp + 0x2c]
mov ebx, dword [edi + ebp + 0x30ea4]
mov dword [esp + 0x40], ebx
cmp ebx, 0x80
jb 0x40ebf0
mov ecx, 0x1ffff
mov eax, ebx
sub ecx, ebx
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
shr eax, cl
movzx eax, byte [eax + ebp + 0x304a0]
lea eax, [eax + ecx*2]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add esi, 0x30
add edx, 4
inc ecx
jmp 0x40e903
mov edi, dword [esp + 0x14]
inc edi
mov dword [esp + 0x14], edi
cmp edi, dword [esp + 0x18]
jne 0x40df40
jmp 0x40ec29
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x498], eax
mov dword [ebp + 0x494], ecx
push edi
push dword [esp + 0x98]
push ebp
call fcn.0040d4d0
add esp, 0xc
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x78
ret