Function at 0x40a960
Capabilities:
Compute adler32 checksum
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x134
mov eax, dword [0x46e040]
xor eax, esp
mov dword [esp + 0x130], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x6c], eax
mov eax, dword [eax]
push edi
add eax, edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x18], ecx
mov edi, edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x68], esi
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x40a9c2
mov edx, dword [esi]
add edx, ebx
mov dword [esp + 0x64], edx
jmp 0x40a9ca
mov dword [esp + 0x64], 0
mov eax, dword [ebp + 0x18]
and eax, 4
mov dword [esp + 0x50], eax
je 0x40a9e8
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x24], 0
jmp 0x40aa08
mov eax, dword ds:[esi]
sub eax, dword [ebp + 0xc]
add eax, ebx
mov dword [esp + 0x24], eax
lea edx, [eax - 1]
mov dword [esp + 0x4c], edx
test edx, eax
jne 0x40c1ab
cmp ebx, dword [ebp + 0xc]
jb 0x40c1ab
lea eax, [ecx + 0x1840]
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x78], eax
lea eax, [ecx + 0x1cc0]
mov dword [esp + 0x7c], eax
lea eax, [ecx + 0x1d40]
mov dword [esp + 0x80], eax
lea eax, [ecx + 0x1d8c]
mov dword [esp + 0x84], eax
lea eax, [ecx + 0x1eac]
mov dword [esp + 0x88], eax
lea eax, [ecx + 0x1ecc]
mov dword [esp + 0x8c], eax
mov eax, ecx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x38]
mov ebx, dword [eax + 0x24]
mov esi, dword [eax + 4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x60], ecx
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x48], ebx
cmp ecx, 0x35
ja case.default.0x40aac0
movups xmm0, xmmword [0x46b2e0]
movzx eax, byte [ecx + 0x40c25c]
movaps xmmword ds:[esp + 0x90], xmm0
movups xmm0, xmmword [str._a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a]
movaps xmmword [esp + 0xa0], xmm0
jmp dword [eax*4 + 0x40c1d8]
mov eax, dword [esp + 0x18]
xor ebx, ebx
mov ecx, dword [ebp + 0x18]
xor edx, edx
xor esi, esi
mov dword [esp + 0x58], 0
mov dword [esp + 0x48], ebx
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x1c], edx
mov dword [eax + 0x1c], 1
mov dword [eax + 0x10], 1
test cl, 1
je 0x40b4c9
jmp 0x40ab16
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x18]
cmp edi, dword [esp + 0x38]
jb 0x40ab3c
test cl, 2
mov dword [esp + 0x44], 1
mov ecx, 0xfffffffc
mov dword [eax], 1
cmovne ecx, dword [esp + 0x44]
jmp 0x40befd
mov ecx, dword [esp + 0x18]
movzx eax, byte [edi]
inc edi
mov dword [ecx + 8], eax
jmp 0x40ab4d
mov ecx, dword [esp + 0x18]
cmp edi, dword [esp + 0x38]
jb 0x40ab73
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 2
jmp 0x40befd
movzx ebx, byte [edi]
xor edx, edx
mov dword [ecx + 0xc], ebx
inc edi
mov ecx, dword [ecx + 8]
mov eax, ecx
shl eax, 8
add eax, ebx
mov dword [esp + 0x44], 0x1f
div dword [esp + 0x44]
mov dword [esp + 0x30], edi
test edx, edx
jne 0x40abab
test bl, 0x20
jne 0x40abab
mov eax, ecx
and al, 0xf
cmp al, 8
jne 0x40abab
xor ebx, ebx
jmp 0x40abb0
mov ebx, 1
cmp dword [esp + 0x50], 0
mov dword [esp + 0x48], ebx
jne 0x40abe4
shr ecx, 4
mov eax, 1
add ecx, 8
shl eax, cl
cmp eax, 0x8000
ja 0x40abd9
cmp dword [esp + 0x24], eax
jb 0x40abd9
xor eax, eax
jmp 0x40abde
mov eax, 1
or ebx, eax
mov dword [esp + 0x48], ebx
test ebx, ebx
je 0x40b4c5
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov dword [eax], 0x24
jmp 0x40bf4d
cmp edi, dword [esp + 0x38]
jae 0x40bd93
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
mov ecx, dword [esp + 0x58]
add esi, 8
or edx, eax
mov dword [esp + 0x30], edi
cmp esi, ecx
jb case.0x40aac0.13
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
mov dword [esp + 0x34], esi
and eax, edx
shr edx, cl
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x54]
movsx eax, byte [edx + 0x469460]
add ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
cmp edx, 0x10
jne 0x40ac6f
movzx edx, byte [eax + ebx + 0x1ee2]
jmp 0x40ac71
xor edx, edx
push ecx
add eax, 0x1ee3
push edx
add eax, ebx
push eax
call fcn.004235b0
mov eax, dword [esp + 0x24]
add esp, 0xc
add ebx, dword [esp + 0x54]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
add eax, ecx
mov dword [esp + 0x48], ebx
cmp ebx, eax
jae 0x40ae09
cmp esi, 0xf
jae 0x40ad7f
mov eax, dword ds:[esp + 0x38]
sub eax, edi
cmp eax, 2
jge 0x40ad5b
mov ecx, dword [esp + 0x18]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x1040]
mov dword [esp + 0x24], eax
test eax, eax
js 0x40acf5
sar eax, 9
test eax, eax
je case.0x40aac0.11
cmp esi, eax
jae 0x40ad83
jmp case.0x40aac0.11
cmp esi, 0xa
jbe case.0x40aac0.11
mov ecx, 0xa
mov dword [esp + 0x34], ecx
inc dword [esp + 0x34]
mov eax, edx
shr eax, cl
mov ecx, dword [esp + 0x24]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [esp + 0x18]
movsx eax, word [ecx + eax*2 + 0x1d40]
mov dword [esp + 0x24], eax
test eax, eax
jns 0x40ad83
mov ecx, dword [esp + 0x34]
lea eax, [ecx + 1]
cmp esi, eax
jae 0x40ad03
cmp edi, dword [esp + 0x38]
jae 0x40bb92
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [esp + 0x30], edi
or edx, eax
cmp esi, 0xf
jb 0x40acc9
jmp 0x40ad7f
movzx edx, byte [edi + 1]
lea ecx, [esi + 8]
movzx eax, byte [edi]
add edi, 2
shl edx, cl
mov ecx, esi
shl eax, cl
or edx, eax
mov dword [esp + 0x30], edi
or dword [esp + 0x1c], edx
add esi, 0x10
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x1040]
mov dword [esp + 0x3c], eax
test eax, eax
js 0x40adaa
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
mov dword [esp + 0x3c], eax
jmp 0x40addf
mov edi, dword [esp + 0x18]
mov ecx, 0xa
mov ebx, dword [esp + 0x3c]
mov eax, edx
not ebx
shr eax, cl
inc ecx
and eax, 1
add eax, ebx
movsx ebx, word [edi + eax*2 + 0x1d40]
test ebx, ebx
js 0x40adb7
mov edi, dword [esp + 0x30]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
shr edx, cl
sub esi, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x34], esi
cmp eax, 0x10
jae 0x40bb70
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov byte [eax + ebx + 0x1ee3], cl
inc ebx
jmp 0x40ac94
jne case.0x40aac0.14
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 0x1ee3]
push eax
lea eax, [ecx + 0x1d8c]
push eax
call fcn.00423710
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x2c]
push dword [ecx + 0x30]
add eax, 0x1ee3
add eax, ecx
push eax
lea eax, [ecx + 0x1eac]
push eax
call fcn.00423710
mov eax, dword [esp + 0x30]
add esp, 0x18
dec dword [eax + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + 0x18]
test eax, eax
jns 0x40b8e5
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
sub eax, edi
mov dword [esp + 0x44], eax
cmp eax, 4
jl 0x40afca
mov eax, dword ds:[esp + 0x64]
sub eax, ecx
cmp eax, 2
jl 0x40afc6
cmp esi, 0xf
jae 0x40aeb0
movzx edx, byte [edi + 1]
mov ecx, esi
movzx eax, byte [edi]
add edi, 2
shl edx, 8
or edx, eax
mov dword [esp + 0x30], edi
shl edx, cl
or dword [esp + 0x1c], edx
add esi, 0x10
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, edx
and eax, 0x3ff
movsx ebx, word [ecx + eax*2 + 0x40]
test ebx, ebx
js 0x40aecb
mov ecx, ebx
sar ecx, 9
jmp 0x40aef8
mov ecx, 0xa
mov dword [esp + 0x24], ecx
mov eax, edx
not ebx
shr eax, cl
mov ecx, dword [esp + 0x18]
and eax, 1
add eax, ebx
movsx ebx, word [ecx + eax*2 + 0x1840]
mov ecx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x24], ecx
test ebx, ebx
js 0x40aed4
shr edx, cl
sub esi, ecx
mov dword [esp + 0x1c], edx
test ebx, 0x100
jne 0x40b11c
cmp esi, 0xf
jae 0x40af33
movzx edx, byte [edi + 1]
mov ecx, esi
movzx eax, byte [edi]
add edi, 2
shl edx, 8
or edx, eax
mov dword [esp + 0x30], edi
shl edx, cl
or dword [esp + 0x1c], edx
add esi, 0x10
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x40]
mov dword [esp + 0x34], eax
test eax, eax
js 0x40af52
mov ecx, eax
sar ecx, 9
jmp 0x40af8c
mov ecx, 0xa
mov dword [esp + 0x24], ecx
nop dword [eax + eax]
mov eax, edx
shr eax, cl
mov ecx, dword [esp + 0x34]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [esp + 0x18]
movsx eax, word [ecx + eax*2 + 0x1840]
mov ecx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ecx
test eax, eax
js 0x40af60
shr edx, cl
sub esi, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], edx
lea eax, [ecx + 1]
mov byte [ecx], bl
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
test eax, 0x100
jne 0x40b116
mov byte [ecx], al
mov ecx, dword [esp + 0x28]
add ecx, 2
mov dword [esp + 0x28], ecx
jmp 0x40ae62
mov eax, dword [esp + 0x44]
cmp esi, 0xf
jae 0x40b095
cmp eax, 2
jge 0x40b071
mov ecx, dword [esp + 0x18]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x40]
mov dword [esp + 0x24], eax
test eax, eax
js 0x40b00a
sar eax, 9
test eax, eax
je case.0x40aac0.15
nop dword [eax + eax]
cmp esi, eax
jae 0x40b095
jmp case.0x40aac0.15
cmp esi, 0xa
jbe case.0x40aac0.15
mov ecx, 0xa
mov dword [esp + 0x50], ecx
mov eax, edx
shr eax, cl
mov ecx, dword [esp + 0x24]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [esp + 0x18]
movsx eax, word [ecx + eax*2 + 0x1840]
mov ecx, dword [esp + 0x50]
inc ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x50], ecx
test eax, eax
jns 0x40b095
lea eax, [ecx + 1]
cmp esi, eax
jae 0x40b018
cmp edi, dword [esp + 0x38]
jae 0x40bbb2
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [esp + 0x30], edi
or edx, eax
cmp esi, 0xf
jb 0x40afdc
jmp 0x40b095
movzx edx, byte [edi + 1]
lea ecx, [esi + 8]
movzx eax, byte [edi]
add edi, 2
shl edx, cl
mov ecx, esi
shl eax, cl
or edx, eax
mov dword [esp + 0x30], edi
or dword [esp + 0x1c], edx
add esi, 0x10
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov eax, edx
and eax, 0x3ff
movsx ebx, word [ebx + eax*2 + 0x40]
test ebx, ebx
js 0x40b0b6
mov ecx, ebx
sar ecx, 9
and ebx, 0x1ff
jmp 0x40b0e4
mov ecx, 0xa
mov dword [esp + 0x24], ecx
nop
mov eax, edx
not ebx
shr eax, cl
mov ecx, dword [esp + 0x18]
and eax, 1
add eax, ebx
movsx ebx, word [ecx + eax*2 + 0x1840]
mov ecx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x24], ecx
test ebx, ebx
js 0x40b0c0
shr edx, cl
sub esi, ecx
mov dword [esp + 0x1c], edx
cmp ebx, 0x100
jae 0x40b11c
mov ecx, dword ds:[esp + 0x28]
cmp ecx, dword [esp + 0x64]
jae 0x40bbd2
mov byte [ecx], bl
inc ecx
mov dword [esp + 0x28], ecx
jmp 0x40ae62
mov dword [esp + 0x28], ecx
mov ebx, eax
and ebx, 0x1ff
mov dword [esp + 0x48], ebx
cmp ebx, 0x100
je 0x40b43f
movzx ecx, byte [ebx + 0x46831f]
movzx ebx, word [ebx*2 + 0x4680fe]
mov dword [esp + 0x58], ecx
test ecx, ecx
je 0x40b184
cmp esi, ecx
jae 0x40b170
cmp edi, dword [esp + 0x38]
jae 0x40bd73
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
mov ecx, dword [esp + 0x58]
add esi, 8
or edx, eax
mov dword [esp + 0x30], edi
cmp esi, ecx
jb case.0x40aac0.17
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
mov dword [esp + 0x1c], edx
add ebx, eax
cmp esi, 0xf
jae 0x40b25d
mov eax, dword [esp + 0x38]
sub eax, edi
cmp eax, 2
jge 0x40b239
mov ecx, dword [esp + 0x18]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x840]
mov dword [esp + 0x24], eax
test eax, eax
js 0x40b1ca
sar eax, 9
test eax, eax
je case.0x40aac0.18
nop
cmp esi, eax
jae 0x40b261
jmp case.0x40aac0.18
cmp esi, 0xa
jbe case.0x40aac0.18
mov ecx, 0xa
mov dword [esp + 0x34], ecx
inc dword ds:[esp + 0x34]
mov eax, edx
shr eax, cl
mov ecx, dword [esp + 0x24]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [esp + 0x18]
movsx eax, word [ecx + eax*2 + 0x1cc0]
mov dword [esp + 0x24], eax
test eax, eax
jns 0x40b261
mov ecx, dword [esp + 0x34]
lea eax, [ecx + 1]
cmp esi, eax
jae 0x40b1d8
cmp edi, dword [esp + 0x38]
jae 0x40bd1c
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [esp + 0x30], edi
or edx, eax
cmp esi, 0xf
jb 0x40b19c
jmp 0x40b25d
movzx edx, byte [edi + 1]
lea ecx, [esi + 8]
movzx eax, byte [edi]
add edi, 2
shl edx, cl
mov ecx, esi
shl eax, cl
or edx, eax
mov dword [esp + 0x30], edi
or dword [esp + 0x1c], edx
add esi, 0x10
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x840]
mov dword [esp + 0x24], eax
test eax, eax
js 0x40b284
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
jmp 0x40b2bc
mov ecx, 0xa
mov dword [esp + 0x50], ecx
nop dword [eax]
mov eax, edx
shr eax, cl
mov ecx, dword [esp + 0x24]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [esp + 0x18]
movsx eax, word [ecx + eax*2 + 0x1cc0]
mov ecx, dword [esp + 0x50]
inc ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x50], ecx
test eax, eax
js 0x40b290
shr edx, cl
sub esi, ecx
movzx ecx, byte [eax + 0x468380]
movzx eax, word [eax*2 + 0x468340]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x3c], eax
test ecx, ecx
je 0x40b31d
nop
cmp esi, ecx
jae 0x40b307
cmp edi, dword [esp + 0x38]
jae 0x40bd3c
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
mov ecx, dword [esp + 0x58]
add esi, 8
or edx, eax
mov dword [esp + 0x30], edi
cmp esi, ecx
jb case.0x40aac0.19
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [esp + 0x3c], eax
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x28]
sub ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x60], ecx
test eax, eax
je 0x40b338
cmp eax, ecx
ja 0x40b338
test ecx, ecx
jne 0x40b346
test byte ds:[ebp + 0x18], 4
jne case.0x40aac0.24
sub ecx, eax
and ecx, dword [esp + 0x4c]
add ecx, dword [ebp + 0xc]
cmp dword [esp + 0x28], ecx
mov eax, ecx
mov dword [esp + 0x44], ecx
cmova eax, dword [esp + 0x28]
add eax, ebx
cmp eax, dword [esp + 0x64]
jbe 0x40b3ad
mov ecx, dword [esp + 0x28]
mov eax, ebx
dec ebx
test eax, eax
je 0x40ae62
jmp 0x40b37b
mov ecx, dword [esp + 0x28]
nop dword [eax + eax]
cmp ecx, dword [esp + 0x64]
jae 0x40bd5c
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x3c]
and eax, dword [esp + 0x4c]
mov ecx, dword [ebp + 0xc]
mov al, byte [eax + ecx]
mov ecx, dword [esp + 0x28]
mov byte [ecx], al
inc ecx
inc dword [esp + 0x60]
mov dword [esp + 0x28], ecx
jmp 0x40b36a
cmp ebx, 2
jbe 0x40b3f7
lea ecx, [ebx - 3]
mov eax, 0xaaaaaaab
mul ecx
mov ecx, dword [esp + 0x44]
mov eax, edx
mov edx, dword [esp + 0x28]
shr eax, 1
inc eax
mov dword [esp + 0x24], eax
nop dword [eax]
movzx eax, byte [ecx]
sub ebx, 3
mov byte [edx], al
movzx eax, byte [ecx + 1]
mov byte [edx + 1], al
movzx eax, byte [ecx + 2]
add ecx, 3
mov byte [edx + 2], al
add edx, 3
sub dword [esp + 0x24], 1
jne 0x40b3d0
mov dword [esp + 0x28], edx
mov edx, dword ds:[esp + 0x1c]
test ebx, ebx
je 0x40ae5e
mov edx, dword [esp + 0x28]
mov al, byte [ecx]
mov byte [edx], al
cmp ebx, 1
jbe 0x40b42c
mov al, byte [ecx + 1]
mov ecx, edx
mov edx, dword [esp + 0x1c]
mov byte [ecx + 1], al
add ecx, ebx
mov dword [esp + 0x28], ecx
jmp 0x40ae62
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
add ecx, ebx
mov dword [esp + 0x28], ecx
jmp 0x40ae62
mov eax, dword [esp + 0x18]
test byte [eax + 0x14], 1
je 0x40b4c9
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x40b484
nop word [eax + eax]
cmp edi, dword [esp + 0x38]
jae 0x40be45
movzx eax, byte ds:[edi]
mov ecx, esi
shl eax, cl
add esi, 8
or edx, eax
inc edi
mov eax, esi
and eax, 7
cmp esi, eax
jb case.0x40aac0.20
mov eax, dword [esp + 0x5c]
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
cmp edi, eax
jbe 0x40b4a4
cmp esi, 8
jb 0x40b4a4
dec edi
sub esi, 8
cmp edi, eax
ja 0x40b495
mov eax, dword [esp + 0x6c]
mov ecx, esi
shl eax, cl
not eax
and edx, eax
test byte [ebp + 0x18], 1
je case.0x40aac0.21
xor ebx, ebx
jmp 0x40be89
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp esi, 3
jae 0x40b4f6
cmp edi, dword [esp + 0x38]
jae 0x40bbe9
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [esp + 0x30], edi
or edx, eax
cmp esi, 3
jb case.0x40aac0.3
mov eax, dword [esp + 0x18]
mov ecx, edx
sub esi, 3
and ecx, 7
shr edx, 3
mov dword [eax + 0x14], ecx
shr ecx, 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x34], esi
mov dword [eax + 0x18], ecx
jne 0x40b72b
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x40b548
cmp edi, dword [esp + 0x38]
jae 0x40bc09
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
add esi, 8
or edx, eax
inc edi
mov eax, esi
mov dword [esp + 0x30], edi
and eax, 7
cmp esi, eax
jb case.0x40aac0.4
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [esp + 0x1c], edx
xor ebx, ebx
nop word [eax + eax]
cmp ebx, 4
jae 0x40b5c9
test esi, esi
je case.0x40aac0.6
cmp esi, 8
jae 0x40b592
cmp edi, dword [esp + 0x38]
jae 0x40bc29
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [esp + 0x30], edi
or edx, eax
cmp esi, 8
jb case.0x40aac0.5
mov eax, dword [esp + 0x18]
sub esi, 8
mov byte [eax + ebx + 0x1edf], dl
shr edx, 8
inc ebx
mov dword [esp + 0x1c], edx
jmp 0x40b557
cmp edi, dword [esp + 0x38]
jae 0x40bc49
mov ecx, dword [esp + 0x18]
mov al, byte [edi]
inc edi
mov dword [esp + 0x30], edi
mov byte [ecx + ebx + 0x1edf], al
inc ebx
jmp 0x40b557
mov ecx, dword [esp + 0x18]
movzx ebx, byte [ecx + 0x1ee0]
movzx eax, byte [ecx + 0x1edf]
movzx ecx, byte [ecx + 0x1ee2]
shl ebx, 8
or ebx, eax
shl ecx, 8
mov eax, dword [esp + 0x18]
mov dword [esp + 0x48], ebx
movzx eax, byte [eax + 0x1ee1]
or ecx, eax
xor ecx, 0xffff
cmp ebx, ecx
jne case.0x40aac0.26
mov ecx, dword [esp + 0x28]
test ebx, ebx
je 0x40b43f
test esi, esi
je 0x40b67c
nop dword [eax]
cmp esi, 8
jae 0x40b645
cmp edi, dword [esp + 0x38]
jae 0x40bc69
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [esp + 0x30], edi
or edx, eax
cmp esi, 8
jb case.0x40aac0.29
movzx eax, dl
shr edx, 8
sub esi, 8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], edx
jmp 0x40b65c
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x64]
jae 0x40bc89
mov byte [ecx], al
inc ecx
dec ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], ebx
jmp 0x40b60d
mov ecx, dword [esp + 0x28]
nop dword [eax]
cmp ecx, dword [esp + 0x64]
jae 0x40bcc5
mov eax, dword [esp + 0x38]
cmp edi, eax
jae 0x40bca5
mov ecx, dword [esp + 0x64]
sub eax, edi
mov edx, dword [esp + 0x28]
sub ecx, edx
mov dword [esp + 0x34], eax
mov eax, ecx
cmp ecx, dword [esp + 0x34]
lfence
cmovae eax, dword [esp + 0x34]
cmp eax, ebx
jae 0x40b6c7
cmp ecx, dword [esp + 0x34]
cmovae ecx, dword [esp + 0x34]
mov dword [esp + 0x24], ecx
jmp 0x40b6cd
mov ecx, ebx
mov dword [esp + 0x24], ebx
push ecx
push edi
push edx
call fcn.00423710
mov eax, dword ds:[esp + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x28]
add edi, eax
mov edx, dword [esp + 0x1c]
add ecx, eax
sub ebx, eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x60], eax
jne 0x40b67c
jmp 0x40b43f
cmp ecx, 3
je 0x40be17
cmp ecx, 1
jne 0x40b7bd
movaps xmm0, xmmword [esp + 0x90]
lea edi, [eax + 0x1d8c]
push 0x90
mov dword [eax + 0x2c], 0x120
mov dword [eax + 0x30], 0x20
push 8
movups xmmword [eax + 0x1eac], xmm0
push edi
movups xmmword [eax + 0x1ebc], xmm0
call fcn.004235b0
push 0x70
add edi, 0x90
push 9
push edi
call fcn.004235b0
movaps xmm0, xmmword [esp + 0xb8]
add esp, 0x18
mov eax, dword [esp + 0x18]
movups xmmword [edi + 0x70], xmm0
movq qword [edi + 0x80], xmm0
mov dword [edi + 0x88], 0x8080808
mov dword [edi + 0x8c], 0x8080808
mov edi, dword [esp + 0x30]
jmp 0x40ae4f
xor ebx, ebx
nop
cmp ebx, 3
jae 0x40b849
movsx eax, byte [ebx + 0x46946c]
cmp esi, eax
jae 0x40b7fe
cmp edi, dword [esp + 0x38]
jae 0x40bcdc
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
or edx, eax
mov dword [esp + 0x30], edi
movsx eax, byte [ebx + 0x46946c]
add esi, 8
mov dword [esp + 0x1c], edx
cmp esi, eax
jb case.0x40aac0.9
mov cl, byte [ebx + 0x46946c]
mov edx, 1
mov eax, dword [esp + 0x1c]
shl edx, cl
mov ecx, dword [esp + 0x18]
dec edx
and edx, eax
mov dword [ecx + ebx*4 + 0x2c], edx
movsx ecx, byte [ebx + 0x46946c]
shr eax, cl
sub esi, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
movzx eax, word [ebx*2 + 0x467ef4]
add eax, edx
mov dword [esp + 0x34], esi
mov edx, dword [esp + 0x1c]
mov dword [ecx + ebx*4 + 0x2c], eax
inc ebx
jmp 0x40b7bf
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
xor ebx, ebx
movups xmmword [eax + 0x1ecc], xmm0
mov word [eax + 0x1edc], 0
mov byte [eax + 0x1ede], 0
mov dword [esp + 0x48], ebx
cmp ebx, dword [eax + 0x34]
jae 0x40b8d5
cmp esi, 3
jae 0x40b8a5
nop dword [eax + eax]
cmp edi, dword [esp + 0x38]
jae 0x40bcfc
movzx eax, byte ds:[edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [esp + 0x30], edi
or edx, eax
cmp esi, 3
jb case.0x40aac0.10
movzx eax, byte [ebx + 0x467b58]
mov ecx, edx
mov edi, dword [esp + 0x18]
and ecx, 7
shr edx, 3
sub esi, 3
mov dword [esp + 0x1c], edx
inc ebx
mov dword [esp + 0x34], esi
mov byte [eax + edi + 0x1ecc], cl
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
jmp 0x40b869
mov dword ds:[eax + 0x34], 0x13
jmp 0x40ae53
mov ecx, dword [esp + 0x18]
shl eax, 0xb
add eax, 0x40
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x18]
push 0x40
push 0
mov ecx, dword [esp + eax*4 + 0x80]
mov eax, dword [esp + eax*4 + 0x8c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x100]
push eax
mov dword [esp + 0x50], ecx
call fcn.004235b0
push 0x800
push 0
push dword [esp + 0x38]
call fcn.004235b0
mov ecx, dword [esp + 0x30]
add esp, 0x18
call fcn.0040a900
mov ecx, dword [esp + 0x18]
xor edx, edx
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + eax*4 + 0x2c]
test ecx, ecx
je 0x40b964
nop dword [eax]
mov eax, dword [esp + 0x20]
movzx eax, byte [edx + eax]
inc edx
inc dword [esp + eax*4 + 0xf8]
cmp edx, ecx
jb 0x40b950
xor edi, edi
mov edx, 4
xor ecx, ecx
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], ecx
mov eax, dword [esp + edx + 0xf8]
add ecx, eax
add ecx, ecx
add edi, eax
mov eax, dword [esp + edx + 0xfc]
add dword [esp + 0x50], eax
mov dword [esp + edx + 0xb4], ecx
add ecx, eax
mov eax, dword [esp + edx + 0x100]
add ecx, ecx
add dword [esp + 0x54], eax
mov dword [esp + edx + 0xb8], ecx
add ecx, eax
add ecx, ecx
mov dword [esp + edx + 0xbc], ecx
add edx, 0xc
cmp edx, 0x3c
jbe 0x40b983
mov eax, dword [esp + 0x54]
add eax, dword [esp + 0x50]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x74], edi
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x30]
add ecx, eax
cmp dword [esp + 0x2c], 0x10000
je 0x40b9f8
cmp ecx, 1
ja 0x40bdca
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x54], 0
mov ecx, dword [eax + 0x18]
cmp dword [eax + ecx*4 + 0x2c], 0
jbe 0x40bb5b
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
xor edx, edx
movzx ecx, byte [ecx + ebx]
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x40bb39
mov edi, dword [esp + ecx*4 + 0xb0]
mov ebx, ecx
lea eax, [edi + 1]
mov dword [esp + ecx*4 + 0xb0], eax
nop dword [eax + eax]
mov ecx, edi
add edx, edx
and ecx, 1
shr edi, 1
or edx, ecx
sub ebx, 1
jne 0x40ba50
mov ecx, dword [esp + 0x2c]
cmp ecx, 0xa
ja 0x40bab4
mov edi, dword [esp + 0x4c]
mov eax, ecx
shl eax, 9
or eax, dword [esp + 0x54]
movzx ebx, ax
mov dword [esp + 0x4c], edi
cmp edx, 0x400
jae 0x40bb31
mov eax, 1
mov dword [esp + 0x4c], edi
shl eax, cl
mov ecx, dword [esp + 0x24]
mov word [ecx + edx*2], bx
add edx, eax
cmp edx, 0x400
jb 0x40baa1
jmp 0x40bb31
mov ebx, dword [esp + 0x24]
mov eax, edx
and eax, 0x3ff
lea edi, [ebx + eax*2]
movsx eax, word [edi]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x40bad7
mov word [edi], si
mov edi, esi
sub esi, 2
jmp 0x40badb
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
shr edx, 9
mov dword [esp + 0x4c], eax
cmp ecx, 0xb
jbe 0x40bb1d
lea ebx, [ecx - 0xb]
mov dword [esp + 0x4c], eax
shr edx, 1
mov eax, edx
and eax, 1
sub eax, edi
mov edi, dword [esp + 0x44]
movzx ecx, word [edi + eax*2 - 2]
test cx, cx
jne 0x40bb15
mov word [edi + eax*2 - 2], si
mov edi, esi
sub esi, 2
jmp 0x40bb18
movsx edi, cx
sub ebx, 1
jne 0x40baf2
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x54]
shr edx, 1
and edx, 1
sub edx, edi
mov word [ecx + edx*2 - 2], ax
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x54]
mov ecx, dword [eax + 0x18]
inc edx
mov dword [esp + 0x54], edx
cmp edx, dword [eax + ecx*4 + 0x2c]
jb 0x40ba22
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x30]
nop dword [eax + eax]
cmp ecx, 2
jne 0x40ae4c
xor ebx, ebx
jmp 0x40ac90
jne 0x40bb7a
test ebx, ebx
je case.0x40aac0.12
movsx ecx, byte [eax + str.out_of_memory]
mov dword [esp + 0x58], ecx
cmp esi, ecx
jae 0x40ac2a
jmp case.0x40aac0.13
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x10
jmp 0x40befd
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x17
jmp 0x40befd
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 2
mov dword [eax], 0x18
jmp 0x40bf4d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 3
jmp 0x40befd
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 5
jmp 0x40befd
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 6
jmp 0x40befd
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 7
jmp 0x40befd
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x33
jmp 0x40befd
mov eax, dword ds:[esp + 0x18]
mov dword [esp + 0x20], 2
mov dword [eax], 0x34
jmp 0x40bf4d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x26
jmp 0x40befd
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 2
mov dword [eax], 9
jmp 0x40bf4d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0xb
jmp 0x40befd
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0xe
jmp 0x40befd
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x1a
jmp 0x40befd
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x1b
jmp 0x40befd
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 2
mov dword [eax], 0x35
jmp 0x40bf4d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x19
jmp 0x40befd
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x12
jmp 0x40befd
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov dword [eax], 0x27
jmp 0x40bf4d
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov dword [eax], 0x23
jmp 0x40bf4d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov dword [eax], 0x11
jmp 0x40bf4d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov dword [eax], 0x15
jmp 0x40bf4d
mov eax, dword [esp + 0x18]
or ecx, 0xffffffff
mov dword [eax], 0xa
mov dword [esp + 0x20], ecx
jmp 0x40bf4d
mov eax, dword ds:[esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov dword [eax], 0x25
jmp 0x40bf4d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x20
jmp 0x40befd
cmp edi, dword [esp + 0x38]
jae 0x40bee2
movzx eax, byte [edi]
inc edi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0x10]
shl eax, 8
or eax, dword [esp + 0x44]
inc ebx
mov dword [ecx + 0x10], eax
cmp ebx, 4
jae case.0x40aac0.21
test esi, esi
je case.0x40aac0.28
cmp esi, 8
jae 0x40beb8
nop dword [eax + eax]
cmp edi, dword [esp + 0x38]
jae 0x40bec3
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
add esi, 8
inc edi
or edx, eax
cmp esi, 8
jb case.0x40aac0.27
movzx eax, dl
shr edx, 8
sub esi, 8
jmp 0x40be73
test byte ds:[ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x29
jmp 0x40befd
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x2a
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], ecx
cmp ecx, 1
je case.default.0x40aac0
cmp dword [esp + 0x44], 0xfffffffc
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x60], ecx
je case.default.0x40aac0
jmp 0x40bf4d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0
mov dword [eax], 0x22
mov ecx, dword [esp + 0x5c]
cmp edi, ecx
jbe case.default.0x40aac0
cmp esi, 8
jb case.default.0x40aac0
dec edi
sub esi, 8
cmp edi, ecx
ja 0x40bf55
jmp case.default.0x40aac0
mov eax, dword [esp + 0x18]
sub edi, dword [esp + 0x5c]
mov ecx, esi
mov dword [eax + 4], esi
mov esi, dword [esp + 0x6c]
shl esi, cl
mov ecx, dword [esp + 0x3c]
not esi
mov dword [eax + 0x20], ecx
and esi, edx
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x68]
mov dword [eax + 0x28], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0x3c], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 0x24], ebx
mov ebx, dword [esp + 0x20]
mov dword [eax + 0x38], esi
mov dword [ecx], edi
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x40]
test byte [ebp + 0x18], 9
mov dword [esp + 0x28], ecx
mov dword [edx], ecx
je 0x40c18d
nop
test ebx, ebx
js 0x40c18d
mov edi, dword [eax + 0x1c]
mov eax, 0x5e6ea9af
mul ecx
movzx esi, di
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, ecx
shr edi, 0x10
mov dword [esp + 0x24], edi
sub edx, eax
mov dword [esp + 0x4c], edx
test ecx, ecx
je 0x40c16c
mov ebx, edx
xor edx, edx
mov dword [esp + 0x5c], edx
cmp ebx, 7
jbe 0x40c09f
mov eax, 7
sub eax, dword [esp + 0x40]
mov dword [esp + 0x68], eax
mov ecx, eax
nop dword [eax + eax]
mov eax, dword [esp + 0x40]
add edx, 8
movzx eax, byte [eax]
add esi, eax
mov eax, dword [esp + 0x40]
add edi, esi
movzx eax, byte [eax + 1]
add esi, eax
mov eax, dword [esp + 0x40]
add edi, esi
movzx eax, byte [eax + 2]
add esi, eax
mov eax, dword [esp + 0x40]
add edi, esi
movzx eax, byte [eax + 3]
add esi, eax
mov eax, dword [esp + 0x40]
add edi, esi
movzx eax, byte [eax + 4]
add esi, eax
mov eax, dword [esp + 0x40]
add edi, esi
movzx eax, byte [eax + 5]
add esi, eax
mov eax, dword [esp + 0x40]
add edi, esi
movzx eax, byte [eax + 6]
add esi, eax
mov eax, dword [esp + 0x40]
add edi, esi
movzx eax, byte [eax + 7]
add esi, eax
mov eax, dword [esp + 0x40]
add eax, 8
add edi, esi
mov dword [esp + 0x40], eax
add eax, ecx
cmp eax, ebx
jb 0x40c020
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x4c]
xor ebx, ebx
xor edx, edx
cmp dword [esp + 0x5c], eax
jae 0x40c129
sub eax, dword [esp + 0x5c]
cmp eax, 2
jb 0x40c115
mov edx, dword [esp + 0x4c]
mov ecx, ebx
mov eax, dword [esp + 0x5c]
sub edx, eax
mov edi, dword [esp + 0x40]
sub edx, 2
shr edx, 1
inc edx
lea eax, [eax + edx*2]
mov dword [esp + 0x68], eax
nop dword [eax + eax]
movzx eax, byte [edi]
add esi, eax
movzx eax, byte [edi + 1]
add ebx, esi
add edi, 2
add esi, eax
add ecx, esi
sub edx, 1
jne 0x40c0e0
mov eax, dword [esp + 0x68]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x24]
cmp eax, dword [esp + 0x4c]
jae 0x40c124
mov eax, dword [esp + 0x40]
movzx eax, byte [eax]
add esi, eax
add edi, esi
inc dword [esp + 0x40]
lea eax, [edx + ebx]
add edi, eax
mov eax, 0x80078071
mov ebx, 0x15b0
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
add esi, eax
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul eax, edx, 0xffff000f
add edi, eax
sub ecx, dword [esp + 0x4c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], ebx
jne 0x40bff7
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
shl edi, 0x10
add edi, esi
mov dword [eax + 0x1c], edi
test ebx, ebx
jne 0x40c18d
test byte [ebp + 0x18], 1
je 0x40c18d
cmp edi, dword [eax + 0x10]
mov ecx, 0xfffffffe
cmovne ebx, ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004218f3
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esp + 0x70]
mov eax, 0xfffffffd
pop edi
mov dword [esi], 0
pop esi
mov dword [ecx], 0
mov ecx, dword [esp + 0x134]
pop ebx
xor ecx, esp
call fcn.004218f3
mov esp, ebp
pop ebp
ret 0x14