Function at 0x40c9b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
push edi
mov edx, dword [ebp + 0x490]
mov eax, dword [ebp + 0x48c]
cmp eax, edx
je 0x40c9fe
lea eax, [edx + edx*2]
mov esi, dword [esp + 0x88]
shl eax, 4
pop edi
lea ecx, [eax + ebp + 0x4a0]
mov eax, dword [eax + ebp + 0x4b8]
sub eax, edx
mov edx, dword [ecx + 0x1c]
mov dword [esi], edx
mov ecx, dword [ecx + 0x18]
mov dword [ebp + 0x490], ecx
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov eax, dword [ebp + 0x31738]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp + 0x48c], ebx
mov dword [ebp + 0x490], ebx
jne 0x40ca2a
lea edx, [esp + 0x30]
push edx
push ebp
call fcn.0040c900
add esp, 8
mov dword [esp + 0x20], eax
jmp 0x40ca3e
mov eax, dword [ebp + 0x494]
mov ecx, dword [ebp + 0x498]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], ecx
mov eax, dword [ebp + 0x49c]
cmp eax, 2
mov dword [esp + 0x18], eax
jae 0x40ca67
mov edx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov dword [edx], 0xffffffff
mov eax, 1
pop ebx
add esp, 0x6c
ret
cmp eax, 0x111
jbe 0x40ca76
mov dword [esp + 0x18], 0x111
mov eax, dword [ebp + 0x18]
push eax
call dword [ebp + 0xc]
lea ecx, [ebp + 0x3173c]
add esp, 4
dec eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x2c]
mov ecx, eax
lea edi, [ebx*4]
mov edx, dword [edx]
sub ecx, edx
mov dword [esp + edi + 0x5c], edx
mov dl, byte [eax]
dec ecx
cmp dl, byte [ecx]
jne 0x40cb00
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40cb00
mov edx, dword [esp + 0x18]
mov esi, 2
cmp edx, esi
jbe 0x40cae8
lea edx, [eax + 2]
sub ecx, eax
mov bl, byte [edx]
cmp bl, byte [ecx + edx]
jne 0x40cae1
mov ebx, dword [esp + 0x18]
inc esi
inc edx
cmp esi, ebx
jb 0x40cad0
mov ebx, dword [esp + 0x80]
mov ecx, dword [esp + 0x3c]
mov dword [esp + edi + 0x6c], esi
cmp esi, dword [esp + ecx + 0x6c]
jbe 0x40cb08
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], edi
jmp 0x40cb08
mov dword [esp + edi + 0x6c], 0
mov edx, dword [esp + 0x2c]
inc ebx
add edx, 4
cmp ebx, 4
mov dword [esp + 0x80], ebx
mov dword [esp + 0x2c], edx
jb 0x40ca9a
mov edx, dword [esp + 0x28]
mov ecx, dword [ebp + 0x31734]
mov esi, dword [esp + edx*4 + 0x6c]
cmp esi, ecx
mov dword [esp + 0x4c], esi
jb 0x40cb5c
mov eax, dword [esp + 0x88]
mov ecx, edx
lea edx, [esi - 1]
push edx
push ebp
mov dword [eax], ecx
call fcn.0040dd80
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov edi, dword [esp + 0x20]
lea edx, [ebp + 0x30ea0]
cmp edi, ecx
jb 0x40cb97
mov eax, dword [esp + 0x30]
mov esi, edi
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [esp + 0x88]
lea eax, [esi - 1]
add ecx, 4
push eax
push ebp
mov dword [edx], ecx
call fcn.0040dd80
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov ebx, dword [esp + 0x5c]
mov cl, byte [eax]
mov edx, eax
mov byte [esp + 0x80], cl
sub edx, ebx
cmp edi, 2
mov dl, byte [edx - 1]
mov byte [esp + 0x3c], dl
jae 0x40cbd7
cmp cl, dl
je 0x40cbd7
cmp esi, 2
jae 0x40cbd7
mov eax, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov dword [eax], 0xffffffff
mov eax, 1
pop ebx
add esp, 0x6c
ret
mov esi, dword [ebp + 0x3174c]
mov edi, dword [ebp + 0x323a8]
mov ecx, dword [esp + 0x84]
mov edx, dword [ebp + 0x32398]
xor ebx, ebx
mov dword [ebp + 0x4a4], esi
mov bl, byte [eax - 1]
and edi, ecx
mov cl, 8
mov eax, ebx
mov ebx, dword [ebp + 0x323a4]
sub cl, dl
shr eax, cl
mov ecx, dword [esp + 0x84]
and ebx, ecx
mov ecx, edx
shl ebx, cl
mov edx, dword [ebp + 0x323ac]
lea ecx, [ebp + 0x30ca0]
push ecx
add eax, ebx
lea eax, [eax + eax*2]
shl eax, 9
add eax, edx
cmp esi, 7
jb 0x40cc58
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x84]
and ecx, 0xff
and edx, 0xff
push ecx
push edx
push eax
call fcn.0040dd10
add esp, 0x10
jmp 0x40cc6f
mov ecx, dword [esp + 0x84]
and ecx, 0xff
push ecx
push eax
call fcn.0040dcc0
add esp, 0xc
mov ecx, dword [ebp + 0x3174c]
xor esi, esi
mov edx, ecx
xor ebx, ebx
shl edx, 4
add edx, edi
mov si, word [ebp + edx*2 + 0x323b0]
lea edx, [ebp + edx*2 + 0x323b0]
shr esi, 4
mov esi, dword [ebp + esi*4 + 0x30ca0]
mov dword [ebp + 0x4ec], 0xffffffff
add esi, eax
xor eax, eax
mov dword [ebp + 0x4d0], esi
mov dword [ebp + 0x4d8], ebx
mov ax, word [edx]
xor edx, edx
mov dx, word [ebp + ecx*2 + 0x32530]
xor eax, 0x7f0
xor edx, 0x7f0
shr eax, 4
shr edx, 4
mov eax, dword [ebp + eax*4 + 0x30ca0]
mov esi, dword [ebp + edx*4 + 0x30ca0]
mov dl, byte [esp + 0x3c]
mov dword [esp + 0x44], eax
add esi, eax
mov al, byte [esp + 0x80]
mov dword [esp + 0x48], esi
cmp dl, al
jne 0x40cd21
push edi
push ecx
push ebp
call fcn.0040ddb0
mov ecx, dword [ebp + 0x4d0]
add eax, esi
add esp, 0xc
cmp eax, ecx
jae 0x40cd21
mov dword [ebp + 0x4d0], eax
mov dword [ebp + 0x4ec], ebx
mov dword [ebp + 0x4d8], ebx
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x4c]
cmp ecx, eax
jb 0x40cd2f
mov eax, ecx
cmp eax, 2
mov dword [esp + 0x10], eax
jae 0x40cd54
mov edx, dword [esp + 0x88]
mov ecx, dword [ebp + 0x4ec]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
mov eax, 1
pop ebx
add esp, 0x6c
ret
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov dword [ebp + 0x4e8], ebx
mov dword [ebp + 0x4c0], ecx
mov ecx, dword [esp + 0x64]
mov dword [ebp + 0x4c4], edx
mov edx, dword [esp + 0x68]
mov dword [ebp + 0x4c8], ecx
lea ecx, [eax + eax*2]
mov dword [ebp + 0x4cc], edx
shl ecx, 4
lea ecx, [ecx + ebp + 0x4a0]
mov dword [ecx], 0x40000000
dec eax
sub ecx, 0x30
cmp eax, 2
jae 0x40cd8f
lea edx, [esp + 0x6c]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
cmp esi, 2
jb 0x40ce28
mov ecx, dword [ebp + 0x3174c]
mov edx, dword [esp + 0x80]
push edi
push ecx
push edx
push ebp
call fcn.0040ddf0
mov ebx, eax
mov eax, dword [esp + 0x58]
add ebx, eax
mov eax, edi
shl eax, 4
add eax, edi
lea ecx, [esi + esi*2]
shl eax, 4
add esp, 0x10
add eax, esi
shl ecx, 4
lea eax, [ebp + eax*4 + 0x37658]
lea ecx, [ecx + ebp + 0x4bc]
mov edx, dword [eax]
add edx, ebx
cmp edx, dword [ecx - 0x1c]
jae 0x40ce1c
mov dword [ecx - 0x1c], edx
mov edx, dword [esp + 0x80]
mov dword [ecx - 4], 0
mov dword [ecx], edx
mov dword [ecx - 0x14], 0
dec esi
sub eax, 4
sub ecx, 0x30
cmp esi, 2
jae 0x40cdf9
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x2c]
inc eax
add edx, 4
cmp eax, 4
mov dword [esp + 0x80], eax
mov dword [esp + 0x2c], edx
jb 0x40cdad
mov eax, dword [ebp + 0x3174c]
xor ecx, ecx
mov cx, word [ebp + eax*2 + 0x32530]
shr ecx, 4
mov eax, dword [ebp + ecx*4 + 0x30ca0]
mov ecx, dword [esp + 0x44]
add eax, ecx
mov ecx, dword [esp + 0x6c]
cmp ecx, 2
inc ecx
mov dword [esp + 0x4c], eax
jae 0x40ce7e
mov ecx, 2
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
cmp ecx, eax
ja 0x40cfbe
mov esi, dword [ebp + 0x30ea0]
lea eax, [ebp + 0x30ea0]
xor edx, edx
cmp ecx, esi
mov dword [esp + 0x80], edx
jbe 0x40cebb
mov esi, dword [eax + 8]
add eax, 8
add edx, 2
cmp ecx, esi
ja 0x40cea7
mov dword [esp + 0x80], edx
lea eax, [ebp + 0x30ea0]
lea ebx, [eax + edx*4]
mov edx, edi
shl edx, 4
add edx, edi
mov dword [esp + 0x3c], ebx
shl edx, 4
add edx, ecx
lea eax, [ebp + edx*4 + 0x32e10]
lea edx, [ecx + ecx*2]
shl edx, 4
mov dword [esp + 0x28], eax
lea edx, [edx + ebp + 0x4bc]
mov eax, dword [esp + 0x28]
mov edi, dword [ebx + 4]
mov dword [esp + 0x38], edx
mov esi, dword [eax]
mov eax, dword [esp + 0x4c]
add esi, eax
cmp ecx, 5
lea eax, [ecx - 2]
jb 0x40cf0c
mov eax, 3
cmp edi, 0x80
jae 0x40cf22
shl eax, 7
add eax, edi
add esi, dword [ebp + eax*4 + 0x31b50]
jmp 0x40cf6d
mov ecx, 0x1ffff
mov edx, edi
sub ecx, edi
xor ebx, ebx
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
shr edx, cl
shl eax, 5
add eax, ecx
mov ecx, edi
and ecx, 0xf
mov bl, byte [edx + ebp + 0x304a0]
lea eax, [ebx + eax*2 + 0xc5d4]
mov ebx, dword [ebp + ecx*4 + 0x32350]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + eax*4]
add edx, ebx
mov ebx, dword [esp + 0x3c]
add esi, edx
mov edx, dword [esp + 0x38]
cmp esi, dword [edx - 0x1c]
jae 0x40cf82
xor eax, eax
add edi, 4
mov dword [edx - 0x1c], esi
mov dword [edx - 4], eax
mov dword [edx], edi
mov dword [edx - 0x14], eax
cmp ecx, dword [ebx]
jne 0x40cfa6
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x30]
add eax, 2
add ebx, 8
cmp eax, esi
mov dword [esp + 0x80], eax
mov dword [esp + 0x3c], ebx
je 0x40cfbe
mov esi, dword [esp + 0x28]
inc ecx
add esi, 4
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], esi
add edx, 0x30
jmp 0x40ceec
mov eax, dword [esp + 0x10]
mov esi, 1
cmp eax, esi
mov dword [esp + 0x80], esi
je 0x40dca2
lea eax, [esp + 0x20]
push eax
push ebp
call fcn.0040c900
mov ecx, dword [ebp + 0x31734]
add esp, 8
cmp eax, ecx
mov dword [esp + 0x54], eax
jae 0x40dc92
mov edi, dword [esp + 0x84]
lea ecx, [esi + esi*2]
shl ecx, 4
inc edi
mov edx, dword [ecx + ebp + 0x4a8]
mov eax, dword [ecx + ebp + 0x4b8]
lea ebx, [ecx + ebp]
mov dword [esp + 0x84], edi
test edx, edx
je 0x40d07f
mov ecx, dword [ebx + 0x4ac]
dec eax
test ecx, ecx
je 0x40d069
mov ecx, dword [ebx + 0x4b0]
mov edi, dword [ebx + 0x4b4]
lea ecx, [ecx + ecx*2]
shl ecx, 4
cmp edi, 4
mov ecx, dword [ecx + ebp + 0x4a4]
jae 0x40d059
mov ecx, dword [ecx*4 + 0x41164c]
mov ecx, dword [ecx*4 + 0x4115ec]
jmp 0x40d08c
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 ecx, dword [ecx*4 + 0x4115ec]
jmp 0x40d08c
lea ecx, [eax + eax*2]
shl ecx, 4
mov ecx, dword [ecx + ebp + 0x4a4]
mov ecx, dword [ecx*4 + 0x4115ec]
jmp 0x40d08c
lea ecx, [eax + eax*2]
shl ecx, 4
mov ecx, dword [ecx + ebp + 0x4a4]
dec esi
cmp eax, esi
jne 0x40d0bb
mov eax, dword [ebx + 0x4bc]
test eax, eax
jne 0x40d0ab
mov edx, dword [ecx*4 + 0x41167c]
mov dword [esp + 0x14], edx
jmp 0x40d16c
mov eax, dword [ecx*4 + 0x4115ec]
mov dword [esp + 0x14], eax
jmp 0x40d16c
test edx, edx
je 0x40d0de
mov edx, dword [ebx + 0x4ac]
test edx, edx
je 0x40d0de
mov eax, dword [ebx + 0x4b0]
mov edx, dword [ebx + 0x4b4]
mov ecx, dword [ecx*4 + 0x41164c]
jmp 0x40d0f9
mov edx, dword [ebx + 0x4bc]
cmp edx, 4
jae 0x40d0f2
mov ecx, dword [ecx*4 + 0x41164c]
jmp 0x40d0f9
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]
lea eax, [eax + eax*2]
mov dword [esp + 0x14], ecx
shl eax, 4
cmp edx, 4
lea ecx, [eax + ebp + 0x4a0]
mov dword [esp + 0x4c], ecx
jae 0x40d14e
mov eax, dword [ecx + edx*4 + 0x20]
mov dword [esp + 0x5c], eax
mov eax, 1
cmp edx, eax
jb 0x40d13b
lea esi, [ecx + 0x20]
lea eax, [edx + 1]
mov ecx, edx
lea edi, [esp + 0x60]
cmp eax, 4
rep movsd dword es:[edi], dword [esi]
jae 0x40d16c
mov ecx, dword [esp + 0x4c]
lea esi, [ecx + eax*4 + 0x20]
mov ecx, 4
lea edi, [esp + eax*4 + 0x5c]
sub ecx, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x40d16c
add edx, 0xfffffffc
lea eax, [ecx + 0x20]
mov dword [esp + 0x5c], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov dword [ebx + 0x4a4], ecx
mov ecx, dword [esp + 0x68]
mov dword [ebx + 0x4c0], edi
mov dword [ebx + 0x4c4], edx
mov edx, dword [ebx + 0x4a0]
mov dword [ebx + 0x4c8], eax
mov dword [ebx + 0x4cc], ecx
mov eax, dword [ebp + 0x18]
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], 0
call dword [ebp + 0xc]
mov esi, eax
add esp, 4
dec esi
mov edx, esi
mov dword [esp + 0x24], esi
mov cl, byte [esi]
sub edx, edi
mov edi, dword [ebp + 0x323a8]
mov byte [esp + 0x28], cl
mov ecx, dword [esp + 0x84]
lea eax, [edx - 1]
and edi, ecx
mov ecx, dword [esp + 0x14]
shl ecx, 4
mov dword [esp + 0x44], eax
mov al, byte [eax]
add ecx, edi
mov byte [esp + 0x34], al
xor edx, edx
mov dword [esp + 0x3c], edi
mov dx, word [ebp + ecx*2 + 0x323b0]
lea eax, [ebp + ecx*2 + 0x323b0]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
shr edx, 4
mov eax, dword [ebp + edx*4 + 0x30ca0]
mov edx, dword [ebp + 0x32398]
add eax, ecx
mov cl, 8
mov dword [esp + 0x38], eax
xor eax, eax
mov al, byte [esi - 1]
sub cl, dl
shr eax, cl
mov ecx, dword [ebp + 0x323a4]
and ecx, dword [esp + 0x84]
mov dword [esp + 0x4c], ecx
mov ecx, edx
mov edx, dword [esp + 0x4c]
shl edx, cl
mov ecx, dword [esp + 0x14]
add eax, edx
mov edx, dword [ebp + 0x323ac]
lea eax, [eax + eax*2]
shl eax, 9
add eax, edx
cmp ecx, 7
lea ecx, [ebp + 0x30ca0]
push ecx
jb 0x40d288
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
and ecx, 0xff
and edx, 0xff
push ecx
push edx
push eax
call fcn.0040dd10
add esp, 0x10
jmp 0x40d29c
mov ecx, dword [esp + 0x2c]
and ecx, 0xff
push ecx
push eax
call fcn.0040dcc0
add esp, 0xc
mov ecx, dword [esp + 0x38]
add ecx, eax
mov eax, dword [ebx + 0x4d0]
cmp ecx, eax
mov dword [esp + 0x38], ecx
jae 0x40d2df
mov edx, dword [esp + 0x80]
mov dword [ebx + 0x4d0], ecx
mov dword [ebx + 0x4e8], edx
mov dword [ebx + 0x4ec], 0xffffffff
mov dword [ebx + 0x4d8], 0
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x48]
xor eax, eax
mov edx, dword [esp + 0x2c]
mov ax, word [ecx]
mov ecx, dword [esp + 0x14]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30ca0]
add eax, edx
xor edx, edx
mov dx, word [ebp + ecx*2 + 0x32530]
mov dword [esp + 0x58], eax
xor edx, 0x7f0
shr edx, 4
mov ecx, dword [ebp + edx*4 + 0x30ca0]
mov dl, byte [esp + 0x34]
add ecx, eax
mov al, byte [esp + 0x28]
cmp dl, al
mov dword [esp + 0x40], ecx
jne 0x40d394
mov eax, dword [esp + 0x80]
mov ecx, dword [ebx + 0x4e8]
cmp ecx, eax
jae 0x40d34c
mov eax, dword [ebx + 0x4ec]
test eax, eax
je 0x40d394
mov ecx, dword [esp + 0x14]
push edi
push ecx
push ebp
call fcn.0040ddb0
mov edx, dword [esp + 0x4c]
mov ecx, dword [ebx + 0x4d0]
add eax, edx
add esp, 0xc
cmp eax, ecx
ja 0x40d394
mov edx, dword [esp + 0x80]
mov dword [ebx + 0x4d0], eax
xor eax, eax
mov dword [ebx + 0x4e8], edx
mov dword [ebx + 0x4ec], eax
mov dword [ebx + 0x4d8], eax
mov dword [esp + 0x1c], 1
mov edi, dword [esp + 0x80]
mov ecx, dword [ebp + 0x49c]
mov eax, 0xfff
mov dword [esp + 0x2c], ecx
sub eax, edi
cmp eax, ecx
jae 0x40d3b6
mov ecx, eax
mov dword [esp + 0x2c], ecx
cmp ecx, 2
jb 0x40dc73
mov edi, dword [ebp + 0x31734]
mov dword [esp + 0x18], ecx
cmp ecx, edi
jbe 0x40d3d1
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40d50f
mov al, byte [esp + 0x28]
mov dl, byte [esp + 0x34]
cmp dl, al
je 0x40d50f
inc edi
cmp edi, ecx
jbe 0x40d3f4
mov edi, ecx
mov ecx, 1
cmp edi, ecx
jbe 0x40d413
mov edx, dword [esp + 0x44]
lea eax, [esi + 1]
sub edx, esi
mov bl, byte [eax]
cmp bl, byte [edx + eax]
jne 0x40d413
inc ecx
inc eax
cmp ecx, edi
jb 0x40d406
lea edx, [ecx - 1]
cmp edx, 2
mov dword [esp + 0x44], edx
jb 0x40d50f
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x84]
mov edi, dword [ebp + 0x323a8]
inc eax
mov ecx, dword [ecx*4 + 0x4115ec]
and eax, edi
mov edi, ecx
xor ebx, ebx
shl edi, 4
add edi, eax
mov dword [esp + 0x48], ecx
mov bx, word [ebp + edi*2 + 0x323b0]
xor edi, edi
mov di, word [ebp + ecx*2 + 0x32530]
xor ebx, 0x7f0
shr ebx, 4
xor edi, 0x7f0
mov ebx, dword [ebp + ebx*4 + 0x30ca0]
shr edi, 4
add ebx, dword [ebp + edi*4 + 0x30ca0]
mov edi, dword [esp + 0x38]
add ebx, edi
mov edi, dword [esp + 0x80]
lea edi, [edx + edi + 1]
cmp dword [esp + 0x10], edi
jae 0x40d4cb
mov edx, dword [esp + 0x10]
lea ecx, [edx + edx*2]
shl ecx, 4
lea ecx, [ecx + ebp + 0x4a0]
mov dword [esp + 0x4c], ecx
mov ecx, edi
sub ecx, edx
add edx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x4c]
add edx, 0x30
dec ecx
mov dword [edx], 0x40000000
jne 0x40d4b7
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
push 0
push ebp
call fcn.0040ded0
lea edx, [edi + edi*2]
add eax, ebx
shl edx, 4
add esp, 0x14
lea ecx, [edx + ebp + 0x4a0]
mov edx, dword [edx + ebp + 0x4a0]
cmp eax, edx
jae 0x40d50f
mov dword [ecx], eax
mov eax, dword [esp + 0x80]
inc eax
mov dword [ecx + 8], 1
mov dword [ecx + 0x18], eax
xor eax, eax
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0xc], eax
mov dword [esp + 0x48], 2
mov dword [esp + 0x1c], 0
jmp 0x40d525
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov eax, esi
mov edx, dword [esp + 0x10]
mov edi, dword [esp + ecx*4 + 0x5c]
mov cl, byte [esi]
sub eax, edi
dec eax
mov dword [esp + 0x44], eax
cmp cl, byte [eax]
jne 0x40d840
mov cl, byte [esi + 1]
mov bl, byte [eax + 1]
cmp cl, bl
jne 0x40d840
mov ecx, dword [esp + 0x18]
mov ebx, 2
cmp ecx, ebx
jbe 0x40d577
mov edi, eax
lea ecx, [esi + 2]
sub edi, esi
mov al, byte [ecx]
cmp al, byte [edi + ecx]
jne 0x40d577
mov eax, dword [esp + 0x18]
inc ebx
inc ecx
cmp ebx, eax
jb 0x40d566
mov ecx, dword [esp + 0x80]
lea edi, [ebx + ecx]
cmp edx, edi
jae 0x40d5a8
lea eax, [edx + edx*2]
shl eax, 4
lea ecx, [eax + ebp + 0x4a0]
mov eax, edi
sub eax, edx
add edx, eax
mov dword [esp + 0x10], edx
add ecx, 0x30
dec eax
mov dword [ecx], 0x40000000
jne 0x40d59c
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
push ebp
mov esi, ebx
call fcn.0040ddf0
mov ecx, dword [esp + 0x4c]
mov edx, eax
mov eax, dword [esp + 0x50]
add esp, 0x10
add edx, eax
mov eax, ecx
shl eax, 4
add eax, ecx
mov dword [esp + 0x50], edx
shl eax, 4
mov dword [esp + 0x4c], eax
add eax, ebx
mov dword [esp + 0x38], eax
lea ecx, [ebp + eax*4 + 0x37658]
lea eax, [edi + edi*2]
shl eax, 4
mov dword [esp + 0x38], ecx
mov edi, ecx
lea eax, [eax + ebp + 0x4bc]
mov ecx, edx
add ecx, dword [edi]
cmp ecx, dword [eax - 0x1c]
jae 0x40d623
mov dword [eax - 0x1c], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax - 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov dword [eax - 0x14], 0
dec ebx
sub edi, 4
sub eax, 0x30
cmp ebx, 2
jae 0x40d600
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
test eax, eax
jne 0x40d642
lea edx, [esi + 1]
mov dword [esp + 0x48], edx
mov ecx, dword [ebp + 0x31734]
mov edx, dword [esp + 0x2c]
lea eax, [esi + 1]
add ecx, eax
cmp ecx, edx
jbe 0x40d657
mov ecx, edx
cmp eax, ecx
jae 0x40d675
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x44]
sub edx, ebx
lea edi, [eax + ebx]
mov bl, byte [edi]
cmp bl, byte [edx + edi]
jne 0x40d675
inc eax
inc edi
cmp eax, ecx
jb 0x40d668
or ecx, 0xffffffff
sub ecx, esi
add eax, ecx
cmp eax, 2
mov dword [esp + 0x38], eax
jb 0x40d840
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x14]
xor ecx, ecx
lea edi, [esi + eax]
lea eax, [ebp + 0x30ca0]
push eax
mov eax, dword [esp + 0x48]
mov ebx, dword [edx*4 + 0x41164c]
mov edx, dword [ebp + 0x323a8]
mov cl, byte [esi + eax]
mov eax, dword [esp + 0x28]
push ecx
xor ecx, ecx
mov cl, byte [esi + eax]
and edi, edx
mov edx, dword [ebp + 0x32398]
push ecx
xor ecx, ecx
mov cl, byte [eax + esi - 1]
mov eax, ecx
mov cl, 8
sub cl, dl
mov edx, dword [ebp + 0x323a4]
shr eax, cl
mov ecx, dword [esp + 0x90]
add ecx, esi
and edx, ecx
mov ecx, dword [ebp + 0x32398]
shl edx, cl
mov ecx, dword [ebp + 0x323ac]
add eax, edx
lea edx, [eax + eax*2]
shl edx, 9
add edx, ecx
push edx
call fcn.0040dd10
mov ecx, ebx
xor edx, edx
shl ecx, 4
add ecx, edi
add esp, 0x10
mov dx, word [ebp + ecx*2 + 0x323b0]
mov ecx, dword [esp + 0x4c]
shr edx, 4
add ecx, esi
mov edi, dword [ebp + edx*4 + 0x30ca0]
mov edx, dword [ebp + ecx*4 + 0x37658]
mov ecx, dword [esp + 0x50]
add eax, edi
mov edi, dword [ebp + 0x323a8]
add eax, edx
mov edx, dword [ebx*4 + 0x4115ec]
add eax, ecx
mov ecx, dword [esp + 0x84]
xor ebx, ebx
lea ecx, [esi + ecx + 1]
and ecx, edi
mov edi, edx
shl edi, 4
add edi, ecx
mov bx, word [ebp + edi*2 + 0x323b0]
xor edi, edi
mov di, word [ebp + edx*2 + 0x32530]
xor ebx, 0x7f0
shr ebx, 4
mov dword [esp + 0x50], ebx
mov ebx, edi
mov edi, dword [esp + 0x50]
xor ebx, 0x7f0
shr ebx, 4
mov edi, dword [ebp + edi*4 + 0x30ca0]
add edi, dword [ebp + ebx*4 + 0x30ca0]
mov ebx, dword [esp + 0x80]
add edi, eax
mov eax, dword [esp + 0x38]
add eax, esi
lea ebx, [eax + ebx + 1]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x4c], ebx
jae 0x40d7e8
lea eax, [eax + eax*2]
shl eax, 4
lea eax, [eax + ebp + 0x4a0]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
sub ebx, eax
add eax, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
add eax, 0x30
dec ebx
mov dword [eax], 0x40000000
jne 0x40d7d8
mov ebx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push ecx
push 0
push ebp
call fcn.0040ded0
lea edx, [ebx + ebx*2]
add eax, edi
shl edx, 4
add esp, 0x14
lea ecx, [edx + ebp + 0x4a0]
mov edx, dword [edx + ebp + 0x4a0]
cmp eax, edx
jae 0x40d840
mov dword [ecx], eax
mov eax, dword [esp + 0x80]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x1c], 0
lea edx, [esi + eax + 1]
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x18], edx
mov edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 4
mov dword [esp + 0x1c], eax
jb 0x40d521
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x18]
cmp edi, ecx
jbe 0x40d88a
xor eax, eax
lea edx, [ebp + 0x30ea0]
mov dword [esp + 0x20], eax
mov edi, ecx
cmp ecx, dword [edx]
jbe 0x40d87c
add eax, 2
mov dword [esp + 0x20], eax
cmp ecx, dword [edx + eax*4]
ja 0x40d870
mov dword [edx + eax*4], ecx
mov eax, dword [esp + 0x20]
add eax, 2
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x48]
cmp edi, esi
jb 0x40dc73
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x58]
xor ecx, ecx
mov cx, word [ebp + edx*2 + 0x32530]
shr ecx, 4
mov eax, dword [ebp + ecx*4 + 0x30ca0]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x80]
add eax, edi
cmp ecx, eax
jae 0x40d8ea
lea edx, [ecx + ecx*2]
sub eax, ecx
shl edx, 4
add ecx, eax
lea edx, [edx + ebp + 0x4a0]
mov dword [esp + 0x10], ecx
add edx, 0x30
dec eax
mov dword [edx], 0x40000000
jne 0x40d8de
mov edx, dword [ebp + 0x30ea0]
lea ecx, [ebp + 0x30ea0]
xor eax, eax
cmp esi, edx
mov dword [esp + 0x1c], eax
jbe 0x40d911
mov edx, dword [ecx + 8]
add ecx, 8
add eax, 2
cmp esi, edx
ja 0x40d900
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + eax*4 + 0x30ea4]
lea edx, [ebp + 0x30ea0]
mov ecx, 0x1ffff
mov edi, eax
sub ecx, eax
xor ebx, ebx
shr ecx, 0x1f
neg ecx
and ecx, 0xa
mov dword [esp + 0x40], eax
add ecx, 6
shr edi, cl
mov bl, byte [edi + ebp + 0x304a0]
lea edi, [esi + 1]
lea ecx, [ebx + ecx*2]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x1c]
lea edx, [edx + ecx*4]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
mov edx, ecx
shl edx, 4
add edx, ecx
shl edx, 4
add edx, esi
lea ecx, [ebp + edx*4 + 0x32e10]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x3c], ecx
lea ecx, [esi + edx]
lea ecx, [ecx + ecx*2]
shl ecx, 4
lea edx, [ecx + ebp + 0x4bc]
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x58]
mov esi, dword [ecx]
add edx, esi
lea esi, [edi - 1]
cmp esi, 5
lea ecx, [esi - 2]
jb 0x40d9a8
mov ecx, 3
cmp eax, 0x80
jae 0x40d9bd
shl ecx, 7
add ecx, eax
add edx, dword [ebp + ecx*4 + 0x31b50]
jmp 0x40d9db
mov ebx, dword [esp + 0x4c]
shl ecx, 6
add ecx, ebx
mov ebx, eax
and ebx, 0xf
mov ecx, dword [ebp + ecx*4 + 0x31750]
add ecx, dword [ebp + ebx*4 + 0x32350]
add edx, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], edx
cmp edx, dword [ecx - 0x1c]
jae 0x40da01
mov dword [ecx - 0x1c], edx
mov edx, dword [esp + 0x80]
mov dword [ecx - 4], edx
lea edx, [eax + 4]
mov dword [ecx], edx
mov dword [ecx - 0x14], 0
mov ecx, dword [esp + 0x18]
cmp esi, dword [ecx]
jne 0x40dc57
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov ecx, ebx
mov esi, edi
sub ecx, eax
mov eax, dword [ebp + 0x31734]
add eax, edi
dec ecx
cmp eax, edx
jbe 0x40da2a
mov eax, edx
cmp edi, eax
jae 0x40da4a
sub ebx, ecx
lea edx, [ecx + edi]
mov dword [esp + 0x54], ebx
jmp 0x40da3d
mov ebx, dword [esp + 0x54]
mov bl, byte [ebx + edx]
cmp bl, byte [edx]
jne 0x40da4a
inc esi
inc edx
cmp esi, eax
jb 0x40da39
or edx, 0xffffffff
lea eax, [edi - 1]
sub edx, eax
add esi, edx
cmp esi, 2
mov dword [esp + 0x44], esi
jb 0x40dc03
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x84]
mov ebx, 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]
lea eax, [ebp + 0x30ca0]
push eax
xor eax, eax
mov al, byte [ecx + edi - 1]
xor ecx, ecx
push eax
mov eax, dword [esp + 0x2c]
lea esi, [edx + edi - 1]
mov edx, dword [ebp + 0x323a8]
mov cl, byte [eax + edi - 1]
mov dword [esp + 0x5c], esi
push ecx
xor ecx, ecx
mov cl, byte [eax + edi - 2]
and esi, edx
mov edx, dword [ebp + 0x32398]
mov eax, ecx
mov cl, 8
sub cl, dl
mov edx, dword [ebp + 0x323a4]
shr eax, cl
mov ecx, dword [esp + 0x60]
and edx, ecx
mov ecx, dword [ebp + 0x32398]
shl edx, cl
mov ecx, dword [ebp + 0x323ac]
add eax, edx
lea eax, [eax + eax*2]
shl eax, 9
add eax, ecx
push eax
call fcn.0040dd10
mov ecx, ebx
xor edx, edx
shl ecx, 4
add ecx, esi
add esp, 0x10
mov dx, word [ebp + ecx*2 + 0x323b0]
shr edx, 4
mov ecx, dword [ebp + edx*4 + 0x30ca0]
mov edx, dword [ebx*4 + 0x4115ec]
add eax, ecx
mov ecx, dword [esp + 0x48]
add eax, ecx
lea ecx, [esi + 1]
mov esi, dword [ebp + 0x323a8]
xor ebx, ebx
and ecx, esi
mov esi, edx
shl esi, 4
add esi, ecx
mov bx, word [ebp + esi*2 + 0x323b0]
xor esi, esi
mov si, word [ebp + edx*2 + 0x32530]
xor ebx, 0x7f0
shr ebx, 4
mov dword [esp + 0x54], ebx
mov ebx, esi
mov esi, dword [esp + 0x54]
xor ebx, 0x7f0
shr ebx, 4
mov esi, dword [ebp + esi*4 + 0x30ca0]
add esi, dword [ebp + ebx*4 + 0x30ca0]
mov ebx, dword [esp + 0x80]
add esi, eax
mov eax, dword [esp + 0x44]
lea eax, [eax + edi - 1]
lea ebx, [eax + ebx + 1]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x50], ebx
jae 0x40dba9
lea eax, [eax + eax*2]
shl eax, 4
lea eax, [eax + ebp + 0x4a0]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
sub ebx, eax
add eax, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
add eax, 0x30
dec ebx
mov dword [eax], 0x40000000
jne 0x40db99
mov ebx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push ecx
push 0
push ebp
call fcn.0040ded0
lea edx, [ebx + ebx*2]
add eax, esi
shl edx, 4
add esp, 0x14
lea ecx, [edx + ebp + 0x4a0]
mov edx, dword [edx + ebp + 0x4a0]
cmp eax, edx
jae 0x40dc03
mov edx, dword [esp + 0x80]
mov dword [ecx], eax
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x1c], 0
lea eax, [edi + edx]
mov edx, dword [esp + 0x40]
mov dword [ecx + 0x18], eax
mov eax, 1
add edx, 4
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x14], edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add eax, 2
add edx, 8
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
je 0x40dc73
mov eax, edx
mov eax, dword [eax + 4]
cmp eax, 0x80
mov dword [esp + 0x40], eax
jb 0x40dc57
mov ecx, 0x1ffff
mov edx, eax
sub ecx, eax
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
shr edx, cl
xor ebx, ebx
mov bl, byte [edx + ebp + 0x304a0]
lea ecx, [ebx + ecx*2]
mov dword [esp + 0x4c], ecx
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
add esi, 4
add edx, 0x30
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edx
inc edi
jmp 0x40d98c
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x80], eax
mov esi, eax
jne 0x40cfd6
jmp 0x40dca2
mov ecx, dword [esp + 0x20]
mov dword [ebp + 0x494], eax
mov dword [ebp + 0x498], ecx
mov edx, dword [esp + 0x88]
push esi
push edx
push ebp
call fcn.0040df10
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret