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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x514d34]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x84]
push ebx
push ebp
mov ebp, dword [esp + 0x88]
mov ebx, ecx
mov ecx, dword [ebp + 0x690]
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], ebx
cmp dword [ebp + 0x68c], ecx
je 0x401e7a
lea edx, [ecx + ecx*2]
add edx, edx
mov eax, dword [ebp + edx*8 + 0x6b8]
lea edx, [ebp + edx*8 + 0x6a0]
sub eax, ecx
mov ecx, dword [edx + 0x1c]
mov dword [ebx], ecx
mov edx, dword [edx + 0x18]
mov dword [ebp + 0x690], edx
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00441a5e
add esp, 0x7c
ret
push esi
push edi
xor edi, edi
mov dword [ebp + 0x68c], edi
mov dword [ebp + 0x690], edi
cmp dword [ebp + 0x31938], edi
jne 0x401ea7
lea eax, [esp + 0x2c]
push eax
mov esi, ebp
call fcn.00401c00
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x401ebb
mov ecx, dword [ebp + 0x694]
mov edx, dword [ebp + 0x698]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], edx
mov eax, dword [ebp + 0x69c]
mov dword [esp + 0x18], eax
cmp eax, 2
jae 0x401ee8
pop edi
pop esi
pop ebp
mov dword [ebx], 0xffffffff
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00441a5e
add esp, 0x7c
ret
cmp eax, 0x111
jbe 0x401ef7
mov dword [esp + 0x18], 0x111
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push eax
call ecx
mov dl, byte [eax - 1]
lea esi, [eax - 1]
add esp, 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x14], edi
mov byte [esp + 0x12], dl
mov dword [esp + 0x44], edi
lea esp, [esp]
lea ebx, [edi*4]
mov eax, dword [ebx + ebp + 0x3193c]
mov ecx, esi
sub ecx, eax
dec ecx
mov dword [esp + ebx + 0x68], eax
cmp dl, byte [ecx]
jne 0x401f82
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x401f82
mov eax, 2
cmp dword [esp + 0x18], eax
jbe 0x401f6a
lea edi, [esi + 2]
sub ecx, esi
mov dl, byte [edi]
cmp dl, byte [ecx + edi]
jne 0x401f62
inc eax
inc edi
cmp eax, dword [esp + 0x18]
jb 0x401f53
mov edi, dword [esp + 0x14]
mov dl, byte [esp + 0x12]
mov ecx, dword [esp + 0x44]
mov dword [esp + ebx + 0x78], eax
cmp eax, dword [esp + ecx + 0x78]
jbe 0x401f8a
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], ebx
jmp 0x401f8a
mov dword [esp + ebx + 0x78], 0
inc edi
mov dword [esp + 0x14], edi
cmp edi, 4
jb 0x401f20
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + ecx*4 + 0x78]
mov eax, dword [ebp + 0x31934]
mov dword [esp + 0x34], edi
cmp edi, eax
jb 0x401fdf
mov edx, dword [esp + 0x58]
lea eax, [edi - 1]
mov dword [edx], ecx
test eax, eax
je 0x401fca
add dword [ebp + 0x31938], eax
mov ecx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
call ecx
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00441a5e
add esp, 0x7c
ret
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jb 0x40202c
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + edx*4 + 0x3109c]
mov edx, dword [esp + 0x58]
add eax, 4
mov dword [edx], eax
lea eax, [ecx - 1]
test eax, eax
je 0x402015
add dword [ebp + 0x31938], eax
mov ecx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
call ecx
add esp, 8
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00441a5e
add esp, 0x7c
ret
mov eax, esi
sub eax, dword [esp + 0x68]
mov al, byte [eax - 1]
mov byte [esp + 0x13], al
cmp ecx, 2
jae 0x402069
cmp dl, al
je 0x402069
cmp edi, 2
jae 0x402069
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
mov dword [ecx], 0xffffffff
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00441a5e
add esp, 0x7c
ret
mov ebx, dword [ebp + 0x3194c]
mov eax, dword [ebp + 0x32598]
mov edi, dword [esp + 0x48]
and edi, dword [ebp + 0x325a8]
mov dword [ebp + 0x6a4], ebx
movzx esi, byte [esi - 1]
mov ecx, 8
sub cl, al
shr esi, cl
mov ecx, dword [ebp + 0x325a4]
and ecx, dword [esp + 0x48]
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], ecx
mov ecx, eax
mov eax, dword [esp + 0x24]
shl eax, cl
movzx ecx, dl
add esi, eax
imul esi, esi, 0x600
add esi, dword [ebp + 0x325ac]
cmp ebx, 7
jb 0x4020dc
movzx eax, byte [esp + 0x13]
lea edi, [ebp + 0x30ea0]
push esi
call fcn.00401710
mov edi, dword [esp + 0x18]
add esp, 4
jmp 0x4020e7
lea edx, [ebp + 0x30ea0]
call fcn.004016d0
mov edx, ebx
shl edx, 4
add edx, edi
lea ecx, [ebp + edx*2 + 0x325b0]
movzx edx, word [ecx]
shr edx, 4
mov edx, dword [ebp + edx*4 + 0x30ea0]
add edx, eax
mov dword [ebp + 0x6d0], edx
mov dl, byte [esp + 0x12]
mov dword [ebp + 0x6ec], 0xffffffff
xor esi, esi
mov dword [ebp + 0x6d8], esi
movzx eax, word [ecx]
movzx ecx, word [ebp + ebx*2 + 0x32730]
xor ecx, 0x7f0
xor eax, 0x7f0
shr ecx, 4
mov ecx, dword [ebp + ecx*4 + 0x30ea0]
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30ea0]
add ecx, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], ecx
cmp byte [esp + 0x13], dl
jne 0x4021a1
mov eax, ebx
shl eax, 4
add eax, edi
movzx edx, word [ebp + eax*2 + 0x32790]
movzx edi, word [ebp + ebx*2 + 0x32748]
shr edx, 4
mov eax, dword [ebp + edx*4 + 0x30ea0]
shr edi, 4
add eax, dword [ebp + edi*4 + 0x30ea0]
add eax, ecx
cmp eax, dword [ebp + 0x6d0]
jae 0x4021a1
mov dword [ebp + 0x6d0], eax
mov dword [ebp + 0x6ec], esi
mov dword [ebp + 0x6d8], esi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
cmp ecx, eax
jb 0x4021b5
mov eax, ecx
mov dword [esp + 0x28], ecx
jmp 0x4021b9
mov dword [esp + 0x28], eax
cmp eax, 2
jae 0x4021e2
mov eax, dword [ebp + 0x6ec]
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00441a5e
add esp, 0x7c
ret
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [ebp + 0x6e8], esi
mov dword [ebp + 0x6c0], edx
mov edx, dword [esp + 0x70]
mov dword [ebp + 0x6c8], edx
mov dword [ebp + 0x6c4], ecx
mov ecx, dword [esp + 0x74]
lea edx, [eax + eax*2]
add edx, edx
mov dword [ebp + 0x6cc], ecx
lea ecx, [ebp + edx*8 + 0x6a0]
lea esp, [esp]
mov dword [ecx], 0x40000000
dec eax
sub ecx, 0x30
cmp eax, 2
jae 0x402220
xor edi, edi
mov esi, dword [esp + edi*4 + 0x78]
cmp esi, 2
jb 0x402292
mov ebx, dword [esp + 0x14]
mov edx, dword [ebp + 0x3194c]
push ebx
mov eax, edi
mov ecx, ebp
call fcn.00401c90
imul ebx, ebx, 0x110
add eax, dword [esp + 0x28]
add ebx, esi
lea ecx, [esi + esi*2]
add esp, 4
add ecx, ecx
lea ebx, [ebp + ebx*4 + 0x37858]
lea ecx, [ebp + ecx*8 + 0x6bc]
mov edx, dword [ebx]
add edx, eax
cmp edx, dword [ecx - 0x1c]
jae 0x402286
mov dword [ecx - 0x1c], edx
xor edx, edx
mov dword [ecx - 4], edx
mov dword [ecx], edi
mov dword [ecx - 0x14], edx
dec esi
sub ebx, 4
sub ecx, 0x30
cmp esi, 2
jae 0x402270
inc edi
cmp edi, 4
jb 0x402231
mov edx, dword [ebp + 0x3194c]
movzx eax, word [ebp + edx*2 + 0x32730]
mov ebx, dword [esp + 0x78]
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30ea0]
add eax, dword [esp + 0x40]
mov dword [esp + 0x24], eax
cmp ebx, 2
jb 0x4022c4
inc ebx
jmp 0x4022c9
mov ebx, 2
cmp ebx, dword [esp + 0x1c]
ja 0x4023cb
xor edi, edi
mov dword [esp + 0x18], edi
cmp ebx, dword [ebp + 0x310a0]
jbe 0x4022f1
add edi, 2
cmp ebx, dword [ebp + edi*4 + 0x310a0]
ja 0x4022e1
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x14]
imul ecx, ecx, 0x110
add ecx, ebx
lea ecx, [ebp + ecx*4 + 0x33010]
lea edx, [ebx + ebx*2]
add edx, edx
mov dword [esp + 0x14], ecx
lea ecx, [ebp + edx*8 + 0x6bc]
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
mov esi, dword [ebp + edi*4 + 0x310a4]
add edx, eax
mov dword [esp + 0x44], ecx
lea eax, [ebx - 2]
cmp ebx, 5
jb 0x402334
mov eax, 3
cmp esi, 0x80
jae 0x40234a
shl eax, 7
add eax, esi
add edx, dword [ebp + eax*4 + 0x31d50]
jmp 0x40238e
mov ecx, 0x1ffff
sub ecx, esi
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
mov edi, esi
shr edi, cl
shl eax, 5
add eax, ecx
mov ecx, esi
movzx edi, byte [edi + ebp + 0x306a0]
lea eax, [edi + eax*2 + 0xc654]
mov eax, dword [ebp + eax*4]
mov edi, dword [esp + 0x18]
and ecx, 0xf
add eax, dword [ebp + ecx*4 + 0x32550]
mov ecx, dword [esp + 0x44]
add edx, eax
cmp edx, dword [ecx - 0x1c]
jae 0x4023a3
xor eax, eax
add esi, 4
mov dword [ecx - 0x1c], edx
mov dword [ecx - 4], eax
mov dword [ecx], esi
mov dword [ecx - 0x14], eax
cmp ebx, dword [ebp + edi*4 + 0x310a0]
jne 0x4023b9
add edi, 2
mov dword [esp + 0x18], edi
cmp edi, dword [esp + 0x2c]
je 0x4023cb
add dword [esp + 0x14], 4
mov eax, dword [esp + 0x24]
inc ebx
add ecx, 0x30
jmp 0x402314
mov eax, 1
mov dword [esp + 0x20], eax
cmp dword [esp + 0x28], eax
je 0x40309f
mov edi, edi
lea ecx, [esp + 0x44]
push ecx
mov esi, ebp
call fcn.00401c00
add esp, 4
mov dword [esp + 0x50], eax
cmp eax, dword [ebp + 0x31934]
jae 0x40308f
mov esi, dword [esp + 0x20]
inc dword [esp + 0x48]
lea ebx, [esi + esi*2]
shl ebx, 4
mov edi, dword [ebx + ebp + 0x6a8]
mov eax, dword [ebx + ebp + 0x6b8]
add ebx, ebp
test edi, edi
je 0x40247b
dec eax
cmp dword [ebx + 0x6ac], 0
je 0x402466
mov ecx, dword [ebx + 0x6b0]
lea ecx, [ecx + ecx*2]
add ecx, ecx
cmp dword [ebx + 0x6b4], 4
mov ecx, dword [ebp + ecx*8 + 0x6a4]
jae 0x402456
mov ecx, dword [ecx*4 + 0x4f99b8]
mov edx, dword [ecx*4 + 0x4f9958]
jmp 0x402487
mov ecx, dword [ecx*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 edx, dword [ecx*4 + 0x4f9958]
jmp 0x402487
lea edx, [eax + eax*2]
add edx, edx
mov ecx, dword [ebp + edx*8 + 0x6a4]
mov edx, dword [ecx*4 + 0x4f9958]
jmp 0x402487
lea ecx, [eax + eax*2]
add ecx, ecx
mov edx, dword [ebp + ecx*8 + 0x6a4]
dec esi
cmp eax, esi
jne 0x4024b5
cmp dword [ebx + 0x6bc], 0
jne 0x4024a5
mov edx, dword [edx*4 + 0x4f99e8]
mov dword [esp + 0x38], edx
jmp 0x40256e
mov eax, dword [edx*4 + 0x4f9958]
mov dword [esp + 0x38], eax
jmp 0x40256e
test edi, edi
je 0x4024db
cmp dword [ebx + 0x6ac], 0
je 0x4024db
mov ecx, dword [ebx + 0x6b4]
mov eax, dword [ebx + 0x6b0]
mov edx, dword [edx*4 + 0x4f99b8]
mov dword [esp + 0x18], ecx
jmp 0x402506
mov ecx, dword [ebx + 0x6bc]
mov dword [esp + 0x18], ecx
cmp ecx, 4
jae 0x4024fb
mov ecx, dword [edx*4 + 0x4f99b8]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x18]
jmp 0x40250a
mov edx, dword [edx*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 ecx, dword [esp + 0x18]
mov dword [esp + 0x38], edx
lea eax, [eax + eax*2]
add eax, eax
lea edx, [ebp + eax*8 + 0x6a0]
cmp ecx, 4
jae 0x402552
mov eax, dword [edx + ecx*4 + 0x20]
mov dword [esp + 0x68], eax
mov eax, 1
cmp ecx, eax
jb 0x40253f
mov eax, dword [esp + 0x18]
inc eax
lea esi, [edx + 0x20]
lea edi, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
cmp eax, 4
jae 0x40256e
mov ecx, 4
lea edi, [esp + eax*4 + 0x68]
lea esi, [edx + eax*4 + 0x20]
sub ecx, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x40256e
mov eax, dword [edx + 0x24]
add ecx, 0xfffffffc
mov dword [esp + 0x68], ecx
mov ecx, dword [edx + 0x20]
mov dword [esp + 0x6c], ecx
mov ecx, dword [edx + 0x28]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x38]
mov dword [ebx + 0x6c0], edx
mov edx, dword [esp + 0x74]
mov dword [ebx + 0x6c4], eax
mov eax, dword [ebx + 0x6a0]
mov dword [ebx + 0x6a4], esi
mov dword [ebx + 0x6c8], ecx
mov dword [ebx + 0x6cc], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
call edx
lea edi, [eax - 1]
mov al, byte [edi]
mov byte [esp + 0x16], al
mov eax, edi
sub eax, dword [esp + 0x6c]
mov dl, byte [eax - 1]
dec eax
mov dword [esp + 0x44], eax
mov byte [esp + 0x17], dl
mov edx, dword [esp + 0x4c]
mov eax, edx
and eax, dword [ebp + 0x325a8]
mov ecx, esi
mov dword [esp + 0x50], eax
shl ecx, 4
add eax, ecx
mov dword [esp + 0x38], eax
movzx eax, word [ebp + eax*2 + 0x325b0]
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30ea0]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x30], edi
movzx edi, byte [edi - 1]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x32598]
mov ecx, 8
sub cl, al
shr edi, cl
mov ecx, dword [ebp + 0x325a4]
and ecx, edx
mov dword [esp + 0x28], ecx
mov ecx, eax
mov eax, dword [esp + 0x28]
shl eax, cl
add esp, 4
add edi, eax
imul edi, edi, 0x600
add edi, dword [ebp + 0x325ac]
cmp esi, 7
jb 0x402667
movzx eax, byte [esp + 0x13]
movzx ecx, byte [esp + 0x12]
push edi
lea edi, [ebp + 0x30ea0]
call fcn.00401710
add esp, 4
jmp 0x4026b8
movzx eax, byte [esp + 0x12]
mov dword [esp + 0x3c], 0
or eax, 0x100
lea esp, [esp]
mov ecx, eax
shr ecx, 8
movzx edx, word [edi + ecx*2]
mov ecx, eax
shr ecx, 7
and ecx, 1
neg ecx
sar ecx, 4
and ecx, 0x7f
shr edx, 4
xor edx, ecx
mov ecx, dword [esp + 0x3c]
add ecx, dword [ebp + edx*4 + 0x30ea0]
add eax, eax
mov dword [esp + 0x3c], ecx
cmp eax, 0x10000
jb 0x402680
mov eax, ecx
mov edx, dword [esp + 0x1c]
add edx, eax
mov dword [esp + 0x1c], edx
cmp edx, dword [ebx + 0x6d0]
jae 0x4026f6
mov dword [ebx + 0x6d0], edx
mov edx, dword [esp + 0x20]
mov dword [ebx + 0x6e8], edx
mov dword [ebx + 0x6ec], 0xffffffff
mov dword [ebx + 0x6d8], 0
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x34]
movzx eax, word [ebp + ecx*2 + 0x325b0]
movzx edx, word [ebp + esi*2 + 0x32730]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30ea0]
add eax, dword [esp + 0x18]
xor edx, 0x7f0
shr edx, 4
mov edi, dword [ebp + edx*4 + 0x30ea0]
mov edx, dword [esp + 0x20]
add edi, eax
mov dword [esp + 0x60], eax
mov al, byte [esp + 0x12]
mov dword [esp + 0x64], edi
cmp byte [esp + 0x13], al
jne 0x4027a6
cmp dword [ebx + 0x6e8], edx
jae 0x402756
cmp dword [ebx + 0x6ec], 0
je 0x4027a6
movzx eax, word [ebp + esi*2 + 0x32748]
movzx ecx, word [ebp + ecx*2 + 0x32790]
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30ea0]
shr ecx, 4
add eax, dword [ebp + ecx*4 + 0x30ea0]
add eax, edi
cmp eax, dword [ebx + 0x6d0]
ja 0x4027a6
mov dword [ebx + 0x6d0], eax
xor eax, eax
mov dword [ebx + 0x6e8], edx
mov dword [ebx + 0x6ec], eax
mov dword [ebx + 0x6d8], eax
mov dword [esp + 0x14], 1
mov ecx, dword [ebp + 0x69c]
mov eax, 0xfff
sub eax, edx
mov dword [esp + 0x3c], ecx
cmp eax, ecx
jae 0x4027c1
mov ecx, eax
mov dword [esp + 0x3c], eax
cmp ecx, 2
jb 0x40307a
mov esi, dword [ebp + 0x31934]
mov dword [esp + 0x18], ecx
cmp ecx, esi
jbe 0x4027dc
mov dword [esp + 0x18], esi
cmp dword [esp + 0x14], 0
jne 0x402931
mov dl, byte [esp + 0x12]
cmp byte [esp + 0x13], dl
je 0x402931
inc esi
cmp esi, ecx
jbe 0x4027fc
mov esi, ecx
mov ecx, 1
cmp esi, ecx
jbe 0x40281f
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
lea eax, [edx + 1]
sub edi, edx
mov dl, byte [eax]
cmp dl, byte [edi + eax]
jne 0x40281f
inc ecx
inc eax
cmp ecx, esi
jb 0x402812
lea eax, [ecx - 1]
mov dword [esp + 0x14], eax
cmp eax, 2
jb 0x402931
mov eax, dword [esp + 0x38]
mov eax, dword [eax*4 + 0x4f9958]
mov ecx, dword [esp + 0x48]
movzx edx, word [ebp + eax*2 + 0x32730]
mov edi, dword [esp + 0x20]
inc ecx
and ecx, dword [ebp + 0x325a8]
mov ebx, eax
shl ebx, 4
add ebx, ecx
movzx esi, word [ebp + ebx*2 + 0x325b0]
xor edx, 0x7f0
shr edx, 4
mov edx, dword [ebp + edx*4 + 0x30ea0]
xor esi, 0x7f0
shr esi, 4
add edx, dword [ebp + esi*4 + 0x30ea0]
mov esi, dword [esp + 0x14]
add edx, dword [esp + 0x1c]
lea esi, [esi + edi + 1]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x34], ebx
cmp edi, esi
jae 0x4028c6
lea ebx, [edi + edi*2]
add ebx, ebx
lea ebx, [ebp + ebx*8 + 0x6a0]
mov dword [esp + 0x24], ebx
mov ebx, esi
sub ebx, edi
add edi, ebx
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x24]
add edi, 0x30
dec ebx
mov dword [edi], 0x40000000
jne 0x4028b6
mov ebx, dword [esp + 0x34]
movzx edi, word [ebp + ebx*2 + 0x32790]
imul ecx, ecx, 0x110
movzx ebx, word [ebp + eax*2 + 0x32748]
add ecx, dword [esp + 0x14]
xor edi, 0x7f0
shr edi, 4
mov eax, dword [ebp + edi*4 + 0x30ea0]
shr ebx, 4
add eax, dword [ebp + ebx*4 + 0x30ea0]
add eax, dword [ebp + ecx*4 + 0x37858]
lea ecx, [esi + esi*2]
add ecx, ecx
add eax, edx
cmp eax, dword [ebp + ecx*8 + 0x6a0]
lea ecx, [ebp + ecx*8 + 0x6a0]
jae 0x402931
mov edx, dword [esp + 0x20]
inc edx
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], eax
mov dword [ecx + 8], 1
mov dword [ecx + 0xc], eax
mov dword [esp + 0x34], 2
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov eax, ecx
sub eax, dword [esp + edx*4 + 0x68]
mov cl, byte [ecx]
dec eax
mov dword [esp + 0x14], eax
cmp cl, byte [eax]
jne 0x402c5e
mov edx, dword [esp + 0x2c]
mov al, byte [edx + 1]
mov ecx, dword [esp + 0x14]
cmp al, byte [ecx + 1]
jne 0x402c5e
mov esi, dword [esp + 0x18]
mov edi, 2
cmp esi, edi
jbe 0x402991
lea eax, [edx + 2]
sub ecx, edx
mov dl, byte [eax]
cmp dl, byte [ecx + eax]
jne 0x402991
inc edi
inc eax
cmp edi, esi
jb 0x402984
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
lea ebx, [edi + eax]
cmp edx, ebx
jae 0x4029c2
lea ecx, [edx + edx*2]
mov eax, ebx
add ecx, ecx
sub eax, edx
add edx, eax
lea ecx, [ebp + ecx*8 + 0x6a0]
mov dword [esp + 0x28], edx
add ecx, 0x30
dec eax
mov dword [ecx], 0x40000000
jne 0x4029b6
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x3c]
mov ecx, ebp
mov esi, edi
call fcn.00401c90
mov ecx, dword [esp + 0x50]
add eax, dword [esp + 0x68]
imul ecx, ecx, 0x110
mov dword [esp + 0x60], ecx
add ecx, edi
lea edx, [ebp + ecx*4 + 0x37858]
lea ecx, [ebx + ebx*2]
add esp, 4
add ecx, ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x30], edx
lea ecx, [ebp + ecx*8 + 0x6bc]
mov ebx, edx
lea esp, [esp]
mov edx, dword [ebx]
add edx, eax
cmp edx, dword [ecx - 0x1c]
jae 0x402a30
mov dword [ecx - 0x1c], edx
mov edx, dword [esp + 0x20]
mov dword [ecx - 4], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx], edx
mov dword [ecx - 0x14], 0
dec edi
sub ebx, 4
sub ecx, 0x30
cmp edi, 2
jae 0x402a10
cmp dword [esp + 0x1c], 0
jne 0x402a4a
lea eax, [esi + 1]
mov dword [esp + 0x34], eax
mov ecx, dword [ebp + 0x31934]
mov edx, dword [esp + 0x3c]
lea eax, [esi + 1]
add ecx, eax
mov dword [esp + 0x30], ecx
cmp ecx, edx
jbe 0x402a67
mov ecx, edx
mov dword [esp + 0x30], edx
cmp eax, ecx
mov ecx, dword [esp + 0x2c]
jae 0x402a87
mov edx, dword [esp + 0x14]
lea edi, [eax + ecx]
sub edx, ecx
mov bl, byte [edi]
cmp bl, byte [edi + edx]
jne 0x402a87
inc eax
inc edi
cmp eax, dword [esp + 0x30]
jb 0x402a78
or edx, 0xffffffff
sub edx, esi
add eax, edx
mov dword [esp + 0x40], eax
cmp eax, 2
jb 0x402c5e
movzx edi, byte [esi + ecx - 1]
movzx ebx, byte [esi + ecx]
mov edx, dword [ebp + 0x32598]
mov eax, dword [esp + 0x48]
add eax, esi
mov ecx, 8
sub cl, dl
shr edi, cl
mov dword [esp + 0x30], eax
mov ecx, eax
and ecx, dword [ebp + 0x325a4]
mov eax, dword [esp + 0x14]
movzx eax, byte [esi + eax]
mov dword [esp + 0x24], ecx
mov ecx, edx
mov edx, dword [esp + 0x24]
shl edx, cl
mov ecx, ebx
add edi, edx
imul edi, edi, 0x600
add edi, dword [ebp + 0x325ac]
push edi
lea edi, [ebp + 0x30ea0]
call fcn.00401710
mov edx, dword [esp + 0x3c]
mov edx, dword [edx*4 + 0x4f99b8]
mov ebx, dword [ebp + 0x325a8]
mov ecx, dword [esp + 0x34]
and ecx, ebx
mov edi, edx
shl edi, 4
add ecx, edi
movzx ecx, word [ebp + ecx*2 + 0x325b0]
mov edi, dword [edx*4 + 0x4f9958]
mov edx, dword [esp + 0x4c]
shr ecx, 4
add eax, dword [ebp + ecx*4 + 0x30ea0]
mov ecx, dword [esp + 0x60]
add ecx, esi
add eax, dword [ebp + ecx*4 + 0x37858]
lea ecx, [edx + esi + 1]
add eax, dword [esp + 0x58]
and ecx, ebx
movzx ebx, word [ebp + edi*2 + 0x32730]
mov edx, edi
shl edx, 4
add edx, ecx
mov dword [esp + 0x28], edx
movzx edx, word [ebp + edx*2 + 0x325b0]
xor edx, 0x7f0
xor ebx, 0x7f0
shr edx, 4
shr ebx, 4
mov dword [esp + 0x58], edx
mov edx, dword [ebp + ebx*4 + 0x30ea0]
mov ebx, dword [esp + 0x58]
add edx, dword [ebp + ebx*4 + 0x30ea0]
mov ebx, dword [esp + 0x24]
add edx, eax
mov eax, dword [esp + 0x44]
add eax, esi
lea ebx, [eax + ebx + 1]
mov eax, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x5c], ebx
cmp eax, ebx
jae 0x402be0
lea eax, [eax + eax*2]
add eax, eax
lea eax, [ebp + eax*8 + 0x6a0]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x28]
sub ebx, eax
add eax, ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
lea esp, [esp]
add eax, 0x30
dec ebx
mov dword [eax], 0x40000000
jne 0x402bd0
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x24]
imul ecx, ecx, 0x110
movzx eax, word [ebp + eax*2 + 0x32790]
movzx edi, word [ebp + edi*2 + 0x32748]
add ecx, dword [esp + 0x40]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30ea0]
shr edi, 4
add eax, dword [ebp + edi*4 + 0x30ea0]
add eax, dword [ebp + ecx*4 + 0x37858]
lea ecx, [ebx + ebx*2]
add ecx, ecx
add eax, edx
cmp eax, dword [ebp + ecx*8 + 0x6a0]
lea ecx, [ebp + ecx*8 + 0x6a0]
jae 0x402c5e
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
lea edx, [esi + eax + 1]
mov dword [ecx + 0x18], edx
mov edx, 1
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x1c], 0
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 4
jb 0x402941
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x18]
cmp esi, eax
jbe 0x402caa
xor ecx, ecx
mov esi, eax
cmp eax, dword [ebp + 0x310a0]
jbe 0x402c9c
jmp 0x402c90
add ecx, 2
cmp eax, dword [ebp + ecx*4 + 0x310a0]
ja 0x402c90
mov dword [ebp + ecx*4 + 0x310a0], eax
add ecx, 2
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x34]
cmp esi, edx
jb 0x40307a
mov ecx, dword [esp + 0x38]
movzx eax, word [ebp + ecx*2 + 0x32730]
mov ecx, dword [esp + 0x20]
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30ea0]
add eax, dword [esp + 0x60]
mov dword [esp + 0x60], eax
lea eax, [esi + ecx]
mov ecx, dword [esp + 0x28]
cmp ecx, eax
jae 0x402d0c
lea esi, [ecx + ecx*2]
add esi, esi
sub eax, ecx
add ecx, eax
lea esi, [ebp + esi*8 + 0x6a0]
mov dword [esp + 0x28], ecx
jmp 0x402d00
add esi, 0x30
dec eax
mov dword [esi], 0x40000000
jne 0x402d00
xor eax, eax
mov dword [esp + 0x18], eax
cmp edx, dword [ebp + 0x310a0]
jbe 0x402d30
lea ebx, [ebx]
add eax, 2
cmp edx, dword [ebp + eax*4 + 0x310a0]
ja 0x402d20
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov eax, dword [ebp + eax*4 + 0x310a4]
mov ecx, 0x1ffff
sub ecx, eax
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
mov esi, eax
shr esi, cl
lea edi, [edx + 1]
mov dword [esp + 0x30], eax
movzx esi, byte [esi + ebp + 0x306a0]
lea ecx, [esi + ecx*2]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x4c]
imul ecx, ecx, 0x110
add ecx, edx
lea ecx, [ebp + ecx*4 + 0x33010]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x20]
add ecx, edx
lea edx, [ecx + ecx*2]
add edx, edx
lea ebx, [ebp + edx*8 + 0x6bc]
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
add edx, dword [esp + 0x60]
lea ecx, [edi - 1]
cmp ecx, 5
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], edi
lea ecx, [edi - 3]
jb 0x402db2
mov ecx, 3
cmp eax, 0x80
jae 0x402dc7
shl ecx, 7
add ecx, eax
add edx, dword [ebp + ecx*4 + 0x31d50]
jmp 0x402de3
shl ecx, 6
add ecx, dword [esp + 0x14]
mov esi, eax
mov ecx, dword [ebp + ecx*4 + 0x31950]
and esi, 0xf
add ecx, dword [ebp + esi*4 + 0x32550]
add edx, ecx
mov dword [esp + 0x34], edx
cmp edx, dword [ebx - 0x1c]
jae 0x402e02
mov dword [ebx - 0x1c], edx
mov edx, dword [esp + 0x20]
lea ecx, [eax + 4]
mov dword [ebx - 4], edx
mov dword [ebx], ecx
mov dword [ebx - 0x14], 0
mov edx, dword [esp + 0x18]
lea ecx, [edi - 1]
cmp ecx, dword [ebp + edx*4 + 0x310a0]
jne 0x40306c
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
sub ecx, eax
mov eax, dword [ebp + 0x31934]
add eax, edi
dec ecx
mov esi, edi
cmp eax, edx
jbe 0x402e31
mov eax, edx
cmp edi, eax
jae 0x402e59
mov ebx, dword [esp + 0x2c]
sub ebx, ecx
lea edx, [ecx + edi]
mov dword [esp + 0x50], ebx
jmp 0x402e48
mov ebx, dword [esp + 0x50]
mov bl, byte [ebx + edx]
cmp bl, byte [edx]
jne 0x402e55
inc esi
inc edx
cmp esi, eax
jb 0x402e44
mov ebx, dword [esp + 0x1c]
or edx, 0xffffffff
lea eax, [edi - 1]
sub edx, eax
add esi, edx
mov dword [esp + 0x40], esi
cmp esi, 2
jb 0x403024
mov eax, dword [esp + 0x48]
mov esi, dword [ebp + 0x325a8]
mov edx, dword [ebp + 0x32598]
lea eax, [eax + edi - 1]
mov dword [esp + 0x50], eax
and esi, eax
movzx eax, byte [ecx + edi - 1]
mov ecx, dword [esp + 0x2c]
movzx ebx, byte [edi + ecx - 1]
movzx edi, byte [ecx + edi - 2]
mov ecx, 8
sub cl, dl
mov edx, dword [ebp + 0x325a4]
and edx, dword [esp + 0x50]
shr edi, cl
mov ecx, dword [ebp + 0x32598]
shl edx, cl
mov ecx, ebx
add edi, edx
imul edi, edi, 0x600
add edi, dword [ebp + 0x325ac]
push edi
lea edi, [ebp + 0x30ea0]
call fcn.00401710
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx*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 ebx, dword [ecx*4 + 0x4f9958]
mov edx, ecx
shl edx, 4
add edx, esi
movzx edx, word [ebp + edx*2 + 0x325b0]
shr edx, 4
add eax, dword [ebp + edx*4 + 0x30ea0]
mov edi, dword [esp + 0x28]
add eax, dword [esp + 0x38]
lea ecx, [esi + 1]
and ecx, dword [ebp + 0x325a8]
movzx esi, word [ebp + ebx*2 + 0x32730]
mov edx, ebx
shl edx, 4
add edx, ecx
mov dword [esp + 0x60], edx
movzx edx, word [ebp + edx*2 + 0x325b0]
xor edx, 0x7f0
shr edx, 4
mov edx, dword [ebp + edx*4 + 0x30ea0]
xor esi, 0x7f0
shr esi, 4
add edx, dword [ebp + esi*4 + 0x30ea0]
mov esi, dword [esp + 0x24]
add edx, eax
mov eax, dword [esp + 0x44]
lea eax, [eax + edi - 1]
lea esi, [eax + esi + 1]
mov eax, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x54], esi
cmp eax, esi
jae 0x402fa0
lea eax, [eax + eax*2]
add eax, eax
lea eax, [ebp + eax*8 + 0x6a0]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
sub esi, eax
add eax, esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x50]
lea esp, [esp]
add eax, 0x30
dec esi
mov dword [eax], 0x40000000
jne 0x402f90
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
imul ecx, ecx, 0x110
movzx eax, word [ebp + eax*2 + 0x32790]
movzx ebx, word [ebp + ebx*2 + 0x32748]
add ecx, dword [esp + 0x40]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30ea0]
shr ebx, 4
add eax, dword [ebp + ebx*4 + 0x30ea0]
mov ebx, dword [esp + 0x1c]
add eax, dword [ebp + ecx*4 + 0x37858]
lea ecx, [esi + esi*2]
add ecx, ecx
add eax, edx
cmp eax, dword [ebp + ecx*8 + 0x6a0]
lea ecx, [ebp + ecx*8 + 0x6a0]
jae 0x403024
mov edx, dword [esp + 0x20]
mov dword [ecx], eax
lea eax, [edi + edx]
mov dword [ecx + 0x10], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 0x18], eax
mov eax, 1
add edx, 4
mov dword [ecx + 0x1c], 0
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x14], edx
mov eax, dword [esp + 0x18]
add eax, 2
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x44]
je 0x40307a
mov eax, dword [ebp + eax*4 + 0x310a4]
mov dword [esp + 0x30], eax
cmp eax, 0x80
jb 0x40306c
mov ecx, 0x1ffff
sub ecx, eax
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
mov edx, eax
shr edx, cl
movzx edx, byte [edx + ebp + 0x306a0]
lea ecx, [edx + ecx*2]
mov dword [esp + 0x14], ecx
add dword [esp + 0x4c], 4
add ebx, 0x30
inc edi
jmp 0x402d90
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x28]
jne 0x4023e0
jmp 0x40309f
mov ecx, dword [esp + 0x44]
mov dword [ebp + 0x698], ecx
mov dword [ebp + 0x694], eax
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x20]
push edx
mov ecx, ebp
call fcn.00401d40
mov ecx, dword [esp + 0x8c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00441a5e
add esp, 0x7c
ret