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

Disassembly:
sub esp, 0x88
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x32a24]
mov ecx, dword [ebp + 0x32a20]
cmp ecx, eax
je 0x40c8c6
lea ecx, [eax + eax*4]
pop edi
pop esi
mov edx, dword [ebp + ecx*8 + 0x34]
sub edx, eax
mov eax, dword [esp + 0x9c]
mov dword [eax], edx
mov eax, dword [ebp + 0x32a24]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x98]
mov edx, dword [ebp + ecx*8 + 0x38]
mov dword [eax], edx
mov eax, dword [ebp + 0x32a24]
lea ecx, [eax + eax*4]
xor eax, eax
mov edx, dword [ebp + ecx*8 + 0x34]
mov dword [ebp + 0x32a24], edx
pop ebp
pop ebx
add esp, 0x88
ret 0xc
mov al, byte [ebp + 0x32a28]
xor ebx, ebx
test al, al
mov dword [ebp + 0x32a24], ebx
mov dword [ebp + 0x32a20], ebx
jne 0x40c8fb
lea eax, [esp + 0x3c]
mov ecx, ebp
push eax
call fcn.0040d940
cmp eax, ebx
je 0x40c90c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0xc
mov ecx, dword [ebp + 0x32a18]
mov byte [ebp + 0x32a28], 0
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ebx
lea edi, [ebp + 0x10]
mov eax, dword [edi]
mov ecx, dword [ebp + 0x28024]
push 0x111
lea esi, [ebx*4]
mov edx, dword [ecx]
push eax
push 0xffffffffffffffff
push ecx
mov dword [esp + esi + 0x64], eax
call dword [edx + 0x1c]
test ebx, ebx
mov dword [esp + esi + 0x88], eax
je 0x40c950
mov ecx, dword [esp + 0x28]
cmp eax, dword [esp + ecx + 0x88]
jbe 0x40c958
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], esi
inc ebx
add edi, 4
cmp ebx, 4
jb 0x40c917
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0x32a14]
mov ecx, dword [esp + edx*4 + 0x88]
cmp ecx, eax
mov dword [esp + 0x38], ecx
jbe 0x40c9a4
mov eax, dword [esp + 0xa0]
mov dword [eax], edx
mov eax, dword [esp + 0xa4]
mov dword [eax], ecx
dec ecx
push ecx
mov ecx, ebp
call fcn.0040c780
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret 0xc
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
jbe 0x40c9e4
mov eax, dword [ebp + eax*4 + 0x325c8]
mov edx, dword [esp + 0xa0]
add eax, 4
dec ecx
push ecx
mov ecx, ebp
mov dword [edx], eax
call fcn.0040c780
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov dword [eax], ecx
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret 0xc
mov eax, dword [ebp + 0x28024]
push 0xffffffffffffffff
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
mov edi, dword [ebp + 0x10]
mov byte [esp + 0x28], al
mov al, byte [ebp + 0xc]
mov edx, 0xfffffffe
mov byte [ebp + 0x24], al
mov eax, dword [ebp + 0x28024]
sub edx, edi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
mov ebx, dword [ebp + 0x33678]
mov byte [esp + 0x40], al
mov eax, dword [esp + 0x9c]
mov dl, byte [ebp + 0xd]
and ebx, eax
xor eax, eax
mov al, byte [ebp + 0xc]
mov edi, dword [ebp + 0x325c4]
shl eax, 4
add eax, ebx
mov byte [esp + 0x14], dl
mov edx, dword [ebp + 0x325bc]
mov dword [esp + 0x48], ebx
mov ecx, dword [ebp + eax*4 + 0x28058]
mov al, byte [ebp + 0xe]
shr ecx, 2
and ecx, 0x1ff
mov byte [esp + 0x2c], al
mov eax, dword [esp + 0x40]
mov esi, dword [ecx*4 + 0x422908]
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov cl, 8
sub cl, dl
and eax, 0xff
shr eax, cl
mov ecx, dword [esp + 0xa8]
and edi, ecx
mov ecx, edx
shl edi, cl
add eax, edi
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 0x325b8]
shl ecx, 0xa
add ecx, eax
call fcn.0040adc0
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
add eax, esi
xor edi, edi
mov dword [ebp + 0x58], eax
mov eax, dword [esp + 0x58]
mov dword [ebp + 0x60], 0xffffffff
mov byte [ebp + 0x4d], 0
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x3c], edx
mov edx, dword [esp + 0x60]
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov cl, byte [ebp + 0xc]
mov eax, ecx
and eax, 0xff
mov edx, eax
shl edx, 4
add edx, ebx
mov edx, dword [ebp + edx*4 + 0x28058]
dec edx
not edx
shr edx, 2
and edx, 0x1ff
mov eax, dword [ebp + eax*4 + 0x28358]
mov esi, dword [edx*4 + 0x422908]
dec eax
mov dl, byte [esp + 0x28]
not eax
shr eax, 2
and eax, 0x1ff
mov eax, dword [eax*4 + 0x422908]
add eax, esi
cmp byte [esp + 0x40], dl
mov dword [esp + 0x44], eax
jne 0x40cb88
mov byte [esp + 0x2c], cl
mov ecx, dword [esp + 0x2c]
and ecx, 0xff
mov edx, ecx
shl edx, 4
add edx, ebx
mov edx, dword [ebp + edx*4 + 0x28418]
shr edx, 2
and edx, 0x1ff
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + ecx*4 + 0x28388]
mov ecx, dword [esp + 0x2c]
shr edx, 2
mov ecx, dword [ecx*4 + 0x422908]
and edx, 0x1ff
add ecx, dword [edx*4 + 0x422908]
add ecx, eax
mov eax, dword [ebp + 0x58]
cmp ecx, eax
jae 0x40cb88
mov dword [ebp + 0x58], ecx
mov dword [ebp + 0x60], edi
mov byte [ebp + 0x4d], 0
mov edx, dword [esp + 0x3c]
cmp edx, 2
jae 0x40cbb9
mov eax, dword [esp + 0xa0]
mov edx, dword [ebp + 0x60]
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
mov dword [eax], edx
pop ebp
mov dword [ecx], 1
xor eax, eax
pop ebx
add esp, 0x88
ret 0xc
xor eax, eax
mov al, byte [ebp + 0xc]
mov ecx, dword [ebp + eax*4 + 0x28358]
mov eax, dword [esp + 0x38]
shr ecx, 2
and ecx, 0x1ff
mov edi, dword [ecx*4 + 0x422908]
add edi, esi
cmp edx, eax
mov dword [esp + 0x14], edi
ja 0x40cbe9
xor edx, edx
mov dword [esp + 0x3c], edx
mov eax, 2
cmp edx, eax
jb 0x40ccde
lea edx, [eax + eax*4]
lea edx, [ebp + edx*8]
mov dword [esp + 0x2c], edx
mov dword [edx + 0x34], 0
mov ecx, dword [ebp + eax*4 + 0x325c8]
add ecx, 4
cmp eax, 2
mov dword [edx + 0x38], ecx
mov ecx, dword [ebp + eax*4 + 0x325c8]
jne 0x40cc33
cmp ecx, 0x80
jb 0x40cc33
mov ecx, 0xfffffff
jmp 0x40ccc8
lea esi, [eax - 2]
cmp esi, 4
jb 0x40cc40
mov esi, 3
cmp ecx, 0x80
jae 0x40cc56
shl esi, 7
add esi, ecx
mov esi, dword [ebp + esi*4 + 0x32e2c]
jmp 0x40ccb8
cmp ecx, 0x10000
jae 0x40cc70
mov edi, ecx
xor edx, edx
shr edi, 6
mov dl, byte [edi + 0x422504]
add edx, 0xc
jmp 0x40cc98
cmp ecx, 0x2000000
mov edi, ecx
jae 0x40cc8a
shr edi, 0xf
xor edx, edx
mov dl, byte [edi + 0x422504]
add edx, 0x1e
jmp 0x40cc98
shr edi, 0x18
xor edx, edx
mov dl, byte [edi + 0x422504]
add edx, 0x30
shl esi, 6
mov edi, dword [esp + 0x14]
add esi, edx
and ecx, 0xf
mov esi, dword [ebp + esi*4 + 0x32a2c]
mov edx, dword [ebp + ecx*4 + 0x3362c]
add esi, edx
mov edx, dword [esp + 0x2c]
mov ecx, eax
shl ecx, 4
add ecx, ebx
mov ecx, dword [ebp + ecx*4 + 0x294a8]
add ecx, esi
add ecx, edi
inc eax
mov dword [edx + 0x30], ecx
mov byte [edx + 0x25], 0
mov edx, dword [esp + 0x3c]
cmp eax, edx
jbe 0x40cbf6
mov ecx, dword [esp + 0x38]
cmp edx, ecx
jae 0x40ccec
mov edx, ecx
mov dword [esp + 0x3c], edx
cmp eax, edx
ja 0x40cd09
lea edx, [eax + eax*4]
lea ecx, [ebp + edx*8 + 0x30]
mov dword [ecx], 0xfffffff
mov edx, dword [esp + 0x3c]
inc eax
add ecx, 0x28
cmp eax, edx
jbe 0x40ccf7
xor eax, eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + eax*4 + 0x88]
cmp ecx, 2
jb 0x40ce42
lea edx, [ebp + ebx*4 + 0x2e174]
dec ecx
lea edi, [ebp + 0x80]
mov dword [esp + 0x18], edx
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x18]
mov cl, byte [ebp + 0xc]
test eax, eax
mov esi, dword [edx]
mov byte [esp + 0x28], cl
jne 0x40cd8c
mov eax, dword [esp + 0x28]
and eax, 0xff
mov ecx, eax
shl ecx, 4
add ecx, ebx
mov eax, dword [ebp + eax*4 + 0x28388]
shr eax, 2
mov edx, dword [ebp + ecx*4 + 0x28418]
and eax, 0x1ff
dec edx
not edx
shr edx, 2
and edx, 0x1ff
mov ecx, dword [edx*4 + 0x422908]
mov edx, dword [eax*4 + 0x422908]
add ecx, edx
add esi, ecx
jmp 0x40cdf9
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
and ebx, 0xff
mov edx, dword [ebp + ebx*4 + 0x28388]
dec edx
not edx
shr edx, 2
and edx, 0x1ff
mov ecx, dword [edx*4 + 0x422908]
add esi, ecx
cmp eax, 1
jne 0x40cdd3
mov eax, dword [ebp + ebx*4 + 0x283b8]
shr eax, 2
and eax, 0x1ff
add esi, dword [eax*4 + 0x422908]
jmp 0x40cdf9
push 1
lea ecx, [ebp + ebx*4 + 0x283b8]
call fcn.0040f2e0
mov ecx, dword [esp + 0x1c]
add esi, eax
add ecx, 0xfffffffe
push ecx
lea ecx, [ebp + ebx*4 + 0x283e8]
call fcn.0040f2e0
add esi, eax
mov edx, dword [esp + 0x44]
mov eax, dword [edi]
add esi, edx
cmp esi, eax
jae 0x40ce19
mov eax, dword [esp + 0x1c]
mov dword [edi], esi
mov dword [edi + 4], 0
mov dword [edi + 8], eax
mov byte [edi - 0xb], 0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x48]
add edx, 0x40
add edi, 0x28
dec eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
jne 0x40cd35
mov edx, dword [esp + 0x3c]
inc eax
cmp eax, 4
mov dword [esp + 0x1c], eax
jb 0x40cd0f
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], edx
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
mov dword [esp + 0x20], esi
je 0x40d8fe
mov edx, dword [esp + 0x9c]
lea ecx, [esi + esi*4]
inc edx
mov eax, dword [ebp + ecx*8 + 0x34]
lea ebx, [ebp + ecx*8]
mov dword [esp + 0x9c], edx
mov dl, byte [ebx + 0x25]
test dl, dl
je 0x40cef2
mov cl, byte [ebx + 0x26]
dec eax
test cl, cl
je 0x40ced5
lea ecx, [esi + esi*4 + 5]
mov ecx, dword [ebp + ecx*8]
lea ecx, [ecx + ecx*4]
mov cl, byte [ebp + ecx*8 + 0x24]
mov byte [esp + 0x10], cl
mov ecx, dword [ebx + 0x2c]
cmp ecx, 4
mov ecx, dword [esp + 0x10]
jae 0x40cec7
and ecx, 0xff
mov cl, byte [ecx + 0x41c160]
jmp 0x40cedc
and ecx, 0xff
mov cl, byte [ecx + str._a_a_a_a_a_a_a_n_n_n_n_n_b_b_b_b_b_b_b_v_v_v_v_v_t_t_t_t_t_t_t_v_v_v_v_v]
jmp 0x40cedc
lea ecx, [eax + eax*4]
mov cl, byte [ebp + ecx*8 + 0x24]
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov cl, byte [ecx + 0x41c148]
jmp 0x40cef9
lea ecx, [eax + eax*4]
mov cl, byte [ebp + ecx*8 + 0x24]
mov byte [esp + 0x10], cl
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x40cf47
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x40cf29
mov edx, dword [esp + 0x10]
mov byte [esp + 0x48], 1
and edx, 0xff
mov al, byte [edx + 0x41c16c]
mov byte [esp + 0x10], al
jmp 0x40d016
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x48], 0
and ecx, 0xff
mov dl, byte [ecx + 0x41c148]
mov byte [esp + 0x10], dl
jmp 0x40d016
test dl, dl
mov byte [esp + 0x48], 1
je 0x40cf74
mov cl, byte [ebx + 0x26]
test cl, cl
je 0x40cf74
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x2c]
lea eax, [esi + esi*4 + 5]
and ecx, 0xff
mov eax, dword [ebp + eax*8]
mov cl, byte [ecx + 0x41c160]
jmp 0x40cf9a
mov edx, dword [ebx + 0x38]
mov ecx, dword [esp + 0x10]
cmp edx, 4
jae 0x40cf8e
and ecx, 0xff
mov cl, byte [ecx + 0x41c160]
jmp 0x40cf9a
and ecx, 0xff
mov cl, byte [ecx + str._a_a_a_a_a_a_a_n_n_n_n_n_b_b_b_b_b_b_b_v_v_v_v_v_t_t_t_t_t_t_t_v_v_v_v_v]
cmp edx, 4
mov byte [esp + 0x10], cl
jae 0x40cff2
lea ecx, [eax + eax*4]
shl ecx, 1
mov dword [esp + 0x2c], ecx
lea esi, [ecx + edx]
mov esi, dword [ebp + esi*4 + 0x3c]
mov dword [esp + 0x54], esi
mov esi, 1
cmp edx, esi
jb 0x40cfdb
lea eax, [eax + eax*4]
mov ecx, edx
lea edi, [esp + 0x58]
lea esi, [ebp + eax*8 + 0x3c]
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 1]
cmp esi, 4
jae 0x40d016
mov ecx, dword [esp + 0x2c]
add ecx, esi
lea edi, [esp + esi*4 + 0x54]
lea eax, [ebp + ecx*4 + 0x3c]
mov ecx, 4
sub ecx, esi
mov esi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x40d016
lea ecx, [eax + eax*4]
add edx, 0xfffffffc
mov dword [esp + 0x54], edx
mov edx, dword [ebp + ecx*8 + 0x3c]
lea eax, [ebp + ecx*8 + 0x3c]
mov dword [esp + 0x58], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov al, byte [esp + 0x10]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov byte [ebx + 0x24], al
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0x3c], ecx
mov ecx, dword [esp + 0x60]
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], eax
lea edx, [esp + 0x40]
mov dword [ebx + 0x48], ecx
push edx
mov ecx, ebp
call fcn.0040d940
test eax, eax
jne 0x40d92d
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0x32a14]
cmp eax, ecx
ja 0x40d901
mov eax, dword [ebp + 0x28024]
mov edi, dword [ebx + 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov esi, dword [esp + 0x54]
mov dl, byte [eax - 1]
dec eax
mov byte [esp + 0x68], dl
mov ecx, eax
mov dword [esp + 0x1c], eax
sub ecx, esi
mov al, byte [eax - 1]
mov byte [esp + 0x7c], al
mov esi, dword [ebp + 0x325c4]
mov dl, byte [ecx - 1]
mov ecx, dword [ebp + 0x33678]
mov byte [esp + 0x6c], dl
mov edx, dword [esp + 0x9c]
and ecx, edx
mov edx, dword [esp + 0x10]
and edx, 0xff
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x6c]
shl edx, 4
add ecx, edx
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + ecx*4 + 0x28058]
shr ecx, 2
and ecx, 0x1ff
mov edx, dword [ecx*4 + 0x422908]
mov ecx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x325bc]
push ecx
mov cl, 8
sub cl, dl
and eax, 0xff
shr eax, cl
mov ecx, dword [esp + 0xa8]
and esi, ecx
mov ecx, edx
shl esi, cl
add eax, esi
mov esi, dword [ebp + 0x325b8]
lea ecx, [eax + eax*2]
shl ecx, 0xa
add ecx, esi
call fcn.0040adc0
mov edx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [ebx + 0x58]
add esi, edx
add esi, edi
mov byte [esp + 0x37], 0
cmp esi, eax
jae 0x40d154
mov edx, dword [esp + 0x20]
mov dword [ebx + 0x58], esi
mov dword [ebx + 0x5c], edx
mov dword [ebx + 0x60], 0xffffffff
mov byte [ebx + 0x4d], 0
mov byte [esp + 0x37], 1
mov edx, dword [esp + 0x44]
mov eax, dword [ebp + edx*4 + 0x28058]
dec eax
not eax
shr eax, 2
and eax, 0x1ff
mov eax, dword [eax*4 + 0x422908]
add eax, edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x64], eax
mov ecx, dword [ebp + edi*4 + 0x28358]
dec ecx
not ecx
shr ecx, 2
and ecx, 0x1ff
mov ecx, dword [ecx*4 + 0x422908]
add ecx, eax
mov al, byte [esp + 0x68]
cmp byte [esp + 0x6c], al
mov dword [esp + 0x50], ecx
jne 0x40d203
mov eax, dword [esp + 0x20]
cmp dword [ebx + 0x5c], eax
jae 0x40d1b5
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x40d203
mov edx, dword [ebp + edx*4 + 0x28418]
mov edi, dword [ebp + edi*4 + 0x28388]
shr edx, 2
shr edi, 2
and edx, 0x1ff
and edi, 0x1ff
mov eax, dword [edx*4 + 0x422908]
mov edx, dword [edi*4 + 0x422908]
add eax, edx
add eax, ecx
mov ecx, dword [ebx + 0x58]
cmp eax, ecx
ja 0x40d203
mov dword [ebx + 0x58], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], 0
mov byte [ebx + 0x4d], 0
mov eax, dword [ebp + 0x28024]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov edi, dword [esp + 0x20]
mov edx, eax
mov eax, 0xfff
inc edx
sub eax, edi
mov dword [esp + 0x30], edx
cmp eax, edx
jae 0x40d22b
mov dword [esp + 0x30], eax
mov edx, eax
cmp edx, 2
jb 0x40ce5c
mov eax, dword [ebp + 0x32a14]
cmp edx, eax
jbe 0x40d244
mov dword [esp + 0x30], eax
mov edx, eax
cmp edx, 3
jb 0x40d3c1
mov al, byte [esp + 0x37]
test al, al
jne 0x40d3c1
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x14], eax
mov eax, 1
cmp edx, eax
jbe 0x40d284
mov ecx, dword [esp + 0x14]
mov edi, eax
sub edi, ecx
mov cl, byte [eax + ebx]
cmp cl, byte [edi + ebx]
jne 0x40d284
inc eax
cmp eax, edx
jb 0x40d26f
dec eax
cmp eax, 2
jb 0x40d3c5
mov edx, dword [esp + 0x4c]
mov edi, dword [ebp + 0x33678]
mov cl, byte [edx + 0x41c148]
mov edx, dword [esp + 0x9c]
mov byte [esp + 0x80], cl
mov ecx, dword [esp + 0x80]
and ecx, 0xff
lea ebx, [edx + 1]
mov edx, ecx
and ebx, edi
mov edi, dword [ebp + ecx*4 + 0x28358]
shl edx, 4
add edx, ebx
dec edi
not edi
shr edi, 2
and edi, 0x1ff
mov dword [esp + 0x38], edx
mov dword [esp + 0x14], edi
mov edi, dword [ebp + edx*4 + 0x28058]
mov edx, dword [esp + 0x14]
dec edi
not edi
mov edx, dword [edx*4 + 0x422908]
shr edi, 2
and edi, 0x1ff
add edx, dword [edi*4 + 0x422908]
mov edi, dword [esp + 0x24]
add edx, esi
mov esi, dword [esp + 0x20]
add esi, eax
mov dword [esp + 0x18], esi
inc esi
cmp edi, esi
jae 0x40d341
lea edi, [edi + edi*4]
lea edi, [ebp + edi*8 + 0x30]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
sub esi, edi
add edi, esi
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x14]
add edi, 0x28
dec esi
mov dword [edi], 0xfffffff
jne 0x40d335
mov esi, dword [esp + 0x38]
mov edi, dword [ebp + ecx*4 + 0x28388]
shr edi, 2
mov esi, dword [ebp + esi*4 + 0x28418]
and edi, 0x1ff
dec esi
not esi
shr esi, 2
and esi, 0x1ff
shl eax, 4
mov ecx, dword [esi*4 + 0x422908]
mov esi, dword [edi*4 + 0x422908]
add eax, ebx
add ecx, esi
mov edi, dword [ebp + eax*4 + 0x2e0f4]
mov eax, dword [esp + 0x18]
add ecx, edi
lea eax, [eax + eax*4]
add ecx, edx
mov edx, dword [ebp + eax*8 + 0x58]
lea eax, [ebp + eax*8 + 0x4c]
cmp ecx, edx
jae 0x40d3b5
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 1
mov byte [eax + 2], 0
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
xor edi, edi
jmp 0x40d3d1
mov ebx, dword [esp + 0x1c]
xor edi, edi
jmp 0x40d3d1
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + edi*4 + 0x54]
xor ecx, ecx
inc eax
test edx, edx
jbe 0x40d551
mov dl, byte [ecx + ebx]
mov esi, ecx
sub esi, eax
cmp dl, byte [esi + ebx]
jne 0x40d3f5
mov edx, dword [esp + 0x30]
inc ecx
cmp ecx, edx
jb 0x40d3e0
cmp ecx, 2
jb 0x40d551
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x4c]
add eax, ecx
mov dword [esp + 0x18], eax
lea edx, [eax + eax*4]
mov eax, ecx
shl eax, 4
lea esi, [ebp + edx*8 + 0x30]
mov edx, dword [esp + 0x2c]
add eax, edx
dec ecx
mov dword [esp + 0x14], ecx
lea edx, [ebp + eax*4 + 0x2e0f4]
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jae 0x40d459
lea ecx, [eax + eax*4]
lea edx, [ebp + ecx*8 + 0x30]
mov ecx, dword [esp + 0x18]
sub ecx, eax
add eax, ecx
mov dword [esp + 0x24], eax
add edx, 0x28
dec ecx
mov dword [edx], 0xfffffff
jne 0x40d44d
mov edx, dword [esp + 0x38]
test edi, edi
mov ecx, dword [edx]
jne 0x40d49b
mov eax, dword [esp + 0x44]
mov edx, dword [ebp + eax*4 + 0x28418]
mov eax, dword [ebp + ebx*4 + 0x28388]
dec edx
not edx
shr edx, 2
and edx, 0x1ff
shr eax, 2
mov edx, dword [edx*4 + 0x422908]
and eax, 0x1ff
add edx, dword [eax*4 + 0x422908]
add ecx, edx
jmp 0x40d50f
mov eax, dword [ebp + ebx*4 + 0x28388]
dec eax
not eax
shr eax, 2
and eax, 0x1ff
mov edx, dword [eax*4 + 0x422908]
add ecx, edx
cmp edi, 1
jne 0x40d4d4
mov edx, dword [ebp + ebx*4 + 0x283b8]
shr edx, 2
and edx, 0x1ff
mov eax, dword [edx*4 + 0x422908]
jmp 0x40d50d
mov eax, dword [ebp + ebx*4 + 0x283e8]
lea edx, [edi - 2]
sub eax, edx
neg edx
xor eax, edx
mov edx, dword [ebp + ebx*4 + 0x283b8]
shr eax, 2
and eax, 0x1ff
dec edx
not edx
mov eax, dword [eax*4 + 0x422908]
shr edx, 2
and edx, 0x1ff
add eax, dword [edx*4 + 0x422908]
add ecx, eax
mov edx, dword [esp + 0x50]
mov eax, dword [esi]
add ecx, edx
cmp ecx, eax
jae 0x40d52b
mov eax, dword [esp + 0x20]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov byte [esi - 0xb], 0
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub esi, 0x28
sub edx, 0x40
dec ecx
dec eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jne 0x40d42e
inc edi
cmp edi, 4
jb 0x40d3c9
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
cmp esi, eax
jbe 0x40d56d
mov esi, eax
mov dword [esp + 0x40], esi
cmp esi, 2
jb 0x40ce5c
jne 0x40d588
cmp dword [ebp + 0x325d0], 0x80
jae 0x40ce5c
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x64]
add eax, esi
mov edx, dword [ebp + ecx*4 + 0x28358]
mov ecx, dword [esp + 0x24]
shr edx, 2
and edx, 0x1ff
mov edi, dword [edx*4 + 0x422908]
add edi, ebx
cmp ecx, eax
mov dword [esp + 0x64], edi
jae 0x40d5dc
sub eax, ecx
lea edx, [ecx + ecx*4]
add ecx, eax
lea edx, [ebp + edx*8 + 0x30]
mov dword [esp + 0x24], ecx
add edx, 0x28
dec eax
mov dword [edx], 0xfffffff
jne 0x40d5ca
jmp 0x40d5dc
mov edi, dword [esp + 0x64]
mov ebx, dword [ebp + esi*4 + 0x325c8]
cmp esi, 2
mov dword [esp + 0x78], ebx
jne 0x40d5fe
cmp ebx, 0x80
jb 0x40d5fe
mov eax, 0xfffffff
jmp 0x40d693
lea ecx, [esi - 2]
cmp ecx, 4
jb 0x40d60b
mov ecx, 3
cmp ebx, 0x80
jae 0x40d621
shl ecx, 7
add ecx, ebx
mov ecx, dword [ebp + ecx*4 + 0x32e2c]
jmp 0x40d67f
cmp ebx, 0x10000
jae 0x40d63b
mov eax, ebx
xor edx, edx
shr eax, 6
mov dl, byte [eax + 0x422504]
add edx, 0xc
jmp 0x40d667
cmp ebx, 0x2000000
mov edx, ebx
jae 0x40d657
shr edx, 0xf
xor eax, eax
mov al, byte [edx + 0x422504]
mov edx, eax
add edx, 0x1e
jmp 0x40d667
shr edx, 0x18
xor eax, eax
mov al, byte [edx + 0x422504]
mov edx, eax
add edx, 0x30
shl ecx, 6
add ecx, edx
mov edx, ebx
and edx, 0xf
mov ecx, dword [ebp + ecx*4 + 0x32a2c]
add ecx, dword [ebp + edx*4 + 0x3362c]
mov edx, dword [esp + 0x2c]
mov eax, esi
shl eax, 4
add eax, edx
mov eax, dword [ebp + eax*4 + 0x294a8]
add eax, ecx
lea edx, [eax + edi]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x38], edx
lea eax, [esi + edi]
lea ecx, [eax + eax*4]
mov eax, dword [ebp + ecx*8 + 0x30]
cmp edx, eax
lea ecx, [ebp + ecx*8 + 0x24]
jae 0x40d6c0
mov dword [ecx + 0xc], edx
lea edx, [ebx + 4]
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edx
mov byte [ecx + 1], 0
mov al, byte [ebp + 0x32a11]
test al, al
je 0x40d8ef
mov eax, dword [esp + 0x30]
lea ecx, [esi + 1]
inc ebx
cmp ecx, eax
jae 0x40d6f3
mov edi, dword [esp + 0x1c]
mov dl, byte [ecx + edi]
mov eax, ecx
sub eax, ebx
cmp dl, byte [eax + edi]
jne 0x40d6f3
mov eax, dword [esp + 0x30]
inc ecx
cmp ecx, eax
jb 0x40d6de
sub ecx, esi
dec ecx
cmp ecx, 2
mov dword [esp + 0x14], ecx
jb 0x40d8ef
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x9c]
add edx, esi
mov cl, byte [eax + str._a_a_a_a_a_a_a_n_n_n_n_n_b_b_b_b_b_b_b_v_v_v_v_v_t_t_t_t_t_t_t_v_v_v_v_v]
mov eax, edx
mov byte [esp + 0x28], cl
mov edi, dword [esp + 0x28]
mov ecx, dword [ebp + 0x33678]
and edi, 0xff
and eax, ecx
mov ecx, edi
shl ecx, 4
add eax, ecx
mov eax, dword [ebp + eax*4 + 0x28058]
shr eax, 2
and eax, 0x1ff
mov ecx, dword [eax*4 + 0x422908]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], ecx
mov cl, byte [eax + esi - 1]
mov byte [esp + 0x74], cl
mov ecx, esi
sub ecx, ebx
mov ebx, dword [ebp + 0x325bc]
mov cl, byte [ecx + eax]
mov al, byte [esi + eax]
mov byte [esp + 0x84], al
mov byte [esp + 0x70], cl
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x70]
push ecx
push eax
mov eax, dword [esp + 0x7c]
mov cl, 8
sub cl, bl
and eax, 0xff
shr eax, cl
mov ecx, dword [ebp + 0x325c4]
push 1
and ecx, edx
mov edx, ecx
mov ecx, ebx
mov ebx, dword [ebp + 0x325b8]
shl edx, cl
add eax, edx
lea ecx, [eax + eax*2]
shl ecx, 0xa
add ecx, ebx
call fcn.0040adc0
mov edx, dword [esp + 0x9c]
mov cl, byte [edi + 0x41c148]
mov edi, dword [ebp + 0x33678]
mov byte [esp + 0x28], cl
lea edx, [esi + edx + 1]
and edx, edi
mov edi, dword [esp + 0x28]
and edi, 0xff
mov ecx, edi
shl ecx, 4
add ecx, edx
mov ebx, dword [ebp + edi*4 + 0x28358]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + ecx*4 + 0x28058]
dec ecx
not ecx
shr ecx, 2
and ecx, 0x1ff
dec ebx
not ebx
mov ecx, dword [ecx*4 + 0x422908]
shr ebx, 2
and ebx, 0x1ff
add ecx, dword [ebx*4 + 0x422908]
mov ebx, dword [esp + 0x38]
add ecx, eax
mov eax, dword [esp + 0x44]
add ecx, eax
mov eax, dword [esp + 0x14]
add ecx, ebx
lea ebx, [eax + esi + 1]
mov eax, dword [esp + 0x20]
add ebx, eax
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov dword [esp + 0x44], ebx
jae 0x40d870
lea eax, [eax + eax*4]
lea eax, [ebp + eax*8 + 0x30]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x24]
sub ebx, eax
add eax, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x50]
add eax, 0x28
dec ebx
mov dword [eax], 0xfffffff
jne 0x40d860
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
mov edi, dword [ebp + edi*4 + 0x28388]
shr edi, 2
mov eax, dword [ebp + eax*4 + 0x28418]
and edi, 0x1ff
dec eax
not eax
shr eax, 2
and eax, 0x1ff
mov eax, dword [eax*4 + 0x422908]
add eax, dword [edi*4 + 0x422908]
mov edi, dword [esp + 0x14]
shl edi, 4
add edi, edx
add eax, dword [ebp + edi*4 + 0x2e0f4]
add eax, ecx
lea ecx, [ebx + ebx*4]
mov edx, dword [ebp + ecx*8 + 0x30]
lea ecx, [ebp + ecx*8 + 0x24]
cmp eax, edx
jae 0x40d8ef
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 4], eax
mov dword [ecx + 0x14], 0
lea edx, [esi + eax + 1]
mov eax, dword [esp + 0x78]
add eax, 4
mov dword [ecx + 0x10], edx
mov byte [ecx + 1], 1
mov byte [ecx + 2], 1
mov dword [ecx + 8], eax
dec esi
cmp esi, 2
jae 0x40d5d8
jmp 0x40ce5c
push esi
jmp 0x40d913
mov dword [ebp + 0x32a18], eax
mov eax, dword [esp + 0x20]
mov byte [ebp + 0x32a28], 1
push eax
mov ecx, dword [esp + 0xa4]
push ecx
mov ecx, ebp
call fcn.0040c7c0
mov edx, dword [esp + 0xa4]
mov dword [edx], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0xc