Function at 0x40a8e0
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 [0x46d040]
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 0x40a942
mov edx, dword [esi]
add edx, ebx
mov dword [esp + 0x64], edx
jmp 0x40a94a
mov dword [esp + 0x64], 0
mov eax, dword [ebp + 0x18]
and eax, 4
mov dword [esp + 0x50], eax
je 0x40a968
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x24], 0
jmp 0x40a988
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 0x40c12b
cmp ebx, dword [ebp + 0xc]
jb 0x40c12b
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.0x40aa40
movups xmm0, xmmword [0x46a2f0]
movzx eax, byte [ecx + 0x40c1dc]
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 + 0x40c158]
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 0x40b449
jmp 0x40aa96
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x18]
cmp edi, dword [esp + 0x38]
jb 0x40aabc
test cl, 2
mov dword [esp + 0x44], 1
mov ecx, 0xfffffffc
mov dword [eax], 1
cmovne ecx, dword [esp + 0x44]
jmp 0x40be7d
mov ecx, dword [esp + 0x18]
movzx eax, byte [edi]
inc edi
mov dword [ecx + 8], eax
jmp 0x40aacd
mov ecx, dword [esp + 0x18]
cmp edi, dword [esp + 0x38]
jb 0x40aaf3
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 2
jmp 0x40be7d
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 0x40ab2b
test bl, 0x20
jne 0x40ab2b
mov eax, ecx
and al, 0xf
cmp al, 8
jne 0x40ab2b
xor ebx, ebx
jmp 0x40ab30
mov ebx, 1
cmp dword [esp + 0x50], 0
mov dword [esp + 0x48], ebx
jne 0x40ab64
shr ecx, 4
mov eax, 1
add ecx, 8
shl eax, cl
cmp eax, 0x8000
ja 0x40ab59
cmp dword [esp + 0x24], eax
jb 0x40ab59
xor eax, eax
jmp 0x40ab5e
mov eax, 1
or ebx, eax
mov dword [esp + 0x48], ebx
test ebx, ebx
je 0x40b445
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov dword [eax], 0x24
jmp 0x40becd
cmp edi, dword [esp + 0x38]
jae 0x40bd13
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.0x40aa40.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 + 0x468450]
add ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
cmp edx, 0x10
jne 0x40abef
movzx edx, byte [eax + ebx + 0x1ee2]
jmp 0x40abf1
xor edx, edx
push ecx
add eax, 0x1ee3
push edx
add eax, ebx
push eax
call fcn.004233f0
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 0x40ad89
cmp esi, 0xf
jae 0x40acff
mov eax, dword ds:[esp + 0x38]
sub eax, edi
cmp eax, 2
jge 0x40acdb
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 0x40ac75
sar eax, 9
test eax, eax
je case.0x40aa40.11
cmp esi, eax
jae 0x40ad03
jmp case.0x40aa40.11
cmp esi, 0xa
jbe case.0x40aa40.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 0x40ad03
mov ecx, dword [esp + 0x34]
lea eax, [ecx + 1]
cmp esi, eax
jae 0x40ac83
cmp edi, dword [esp + 0x38]
jae 0x40bb12
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 0x40ac49
jmp 0x40acff
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 0x40ad2a
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
mov dword [esp + 0x3c], eax
jmp 0x40ad5f
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 0x40ad37
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 0x40baf0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov byte [eax + ebx + 0x1ee3], cl
inc ebx
jmp 0x40ac14
jne case.0x40aa40.14
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 0x1ee3]
push eax
lea eax, [ecx + 0x1d8c]
push eax
call fcn.00423550
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.00423550
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 0x40b865
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
sub eax, edi
mov dword [esp + 0x44], eax
cmp eax, 4
jl 0x40af4a
mov eax, dword ds:[esp + 0x64]
sub eax, ecx
cmp eax, 2
jl 0x40af46
cmp esi, 0xf
jae 0x40ae30
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 0x40ae4b
mov ecx, ebx
sar ecx, 9
jmp 0x40ae78
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 0x40ae54
shr edx, cl
sub esi, ecx
mov dword [esp + 0x1c], edx
test ebx, 0x100
jne 0x40b09c
cmp esi, 0xf
jae 0x40aeb3
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 0x40aed2
mov ecx, eax
sar ecx, 9
jmp 0x40af0c
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 0x40aee0
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 0x40b096
mov byte [ecx], al
mov ecx, dword [esp + 0x28]
add ecx, 2
mov dword [esp + 0x28], ecx
jmp 0x40ade2
mov eax, dword [esp + 0x44]
cmp esi, 0xf
jae 0x40b015
cmp eax, 2
jge 0x40aff1
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 0x40af8a
sar eax, 9
test eax, eax
je case.0x40aa40.15
nop dword [eax + eax]
cmp esi, eax
jae 0x40b015
jmp case.0x40aa40.15
cmp esi, 0xa
jbe case.0x40aa40.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 0x40b015
lea eax, [ecx + 1]
cmp esi, eax
jae 0x40af98
cmp edi, dword [esp + 0x38]
jae 0x40bb32
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 0x40af5c
jmp 0x40b015
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 0x40b036
mov ecx, ebx
sar ecx, 9
and ebx, 0x1ff
jmp 0x40b064
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 0x40b040
shr edx, cl
sub esi, ecx
mov dword [esp + 0x1c], edx
cmp ebx, 0x100
jae 0x40b09c
mov ecx, dword ds:[esp + 0x28]
cmp ecx, dword [esp + 0x64]
jae 0x40bb52
mov byte [ecx], bl
inc ecx
mov dword [esp + 0x28], ecx
jmp 0x40ade2
mov dword [esp + 0x28], ecx
mov ebx, eax
and ebx, 0x1ff
mov dword [esp + 0x48], ebx
cmp ebx, 0x100
je 0x40b3bf
movzx ecx, byte [ebx + 0x467307]
movzx ebx, word [ebx*2 + 0x4670e6]
mov dword [esp + 0x58], ecx
test ecx, ecx
je 0x40b104
cmp esi, ecx
jae 0x40b0f0
cmp edi, dword [esp + 0x38]
jae 0x40bcf3
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.0x40aa40.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 0x40b1dd
mov eax, dword [esp + 0x38]
sub eax, edi
cmp eax, 2
jge 0x40b1b9
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 0x40b14a
sar eax, 9
test eax, eax
je case.0x40aa40.18
nop
cmp esi, eax
jae 0x40b1e1
jmp case.0x40aa40.18
cmp esi, 0xa
jbe case.0x40aa40.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 0x40b1e1
mov ecx, dword [esp + 0x34]
lea eax, [ecx + 1]
cmp esi, eax
jae 0x40b158
cmp edi, dword [esp + 0x38]
jae 0x40bc9c
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 0x40b11c
jmp 0x40b1dd
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 0x40b204
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
jmp 0x40b23c
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 0x40b210
shr edx, cl
sub esi, ecx
movzx ecx, byte [eax + 0x467368]
movzx eax, word [eax*2 + 0x467328]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x3c], eax
test ecx, ecx
je 0x40b29d
nop
cmp esi, ecx
jae 0x40b287
cmp edi, dword [esp + 0x38]
jae 0x40bcbc
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.0x40aa40.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 0x40b2b8
cmp eax, ecx
ja 0x40b2b8
test ecx, ecx
jne 0x40b2c6
test byte ds:[ebp + 0x18], 4
jne case.0x40aa40.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 0x40b32d
mov ecx, dword [esp + 0x28]
mov eax, ebx
dec ebx
test eax, eax
je 0x40ade2
jmp 0x40b2fb
mov ecx, dword [esp + 0x28]
nop dword [eax + eax]
cmp ecx, dword [esp + 0x64]
jae 0x40bcdc
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 0x40b2ea
cmp ebx, 2
jbe 0x40b377
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 0x40b350
mov dword [esp + 0x28], edx
mov edx, dword ds:[esp + 0x1c]
test ebx, ebx
je 0x40adde
mov edx, dword [esp + 0x28]
mov al, byte [ecx]
mov byte [edx], al
cmp ebx, 1
jbe 0x40b3ac
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 0x40ade2
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
add ecx, ebx
mov dword [esp + 0x28], ecx
jmp 0x40ade2
mov eax, dword [esp + 0x18]
test byte [eax + 0x14], 1
je 0x40b449
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x40b404
nop word [eax + eax]
cmp edi, dword [esp + 0x38]
jae 0x40bdc5
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.0x40aa40.20
mov eax, dword [esp + 0x5c]
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
cmp edi, eax
jbe 0x40b424
cmp esi, 8
jb 0x40b424
dec edi
sub esi, 8
cmp edi, eax
ja 0x40b415
mov eax, dword [esp + 0x6c]
mov ecx, esi
shl eax, cl
not eax
and edx, eax
test byte [ebp + 0x18], 1
je case.0x40aa40.21
xor ebx, ebx
jmp 0x40be09
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp esi, 3
jae 0x40b476
cmp edi, dword [esp + 0x38]
jae 0x40bb69
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.0x40aa40.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 0x40b6ab
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x40b4c8
cmp edi, dword [esp + 0x38]
jae 0x40bb89
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.0x40aa40.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 0x40b549
test esi, esi
je case.0x40aa40.6
cmp esi, 8
jae 0x40b512
cmp edi, dword [esp + 0x38]
jae 0x40bba9
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.0x40aa40.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 0x40b4d7
cmp edi, dword [esp + 0x38]
jae 0x40bbc9
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 0x40b4d7
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.0x40aa40.26
mov ecx, dword [esp + 0x28]
test ebx, ebx
je 0x40b3bf
test esi, esi
je 0x40b5fc
nop dword [eax]
cmp esi, 8
jae 0x40b5c5
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, 8
jb case.0x40aa40.29
movzx eax, dl
shr edx, 8
sub esi, 8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], edx
jmp 0x40b5dc
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x64]
jae 0x40bc09
mov byte [ecx], al
inc ecx
dec ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], ebx
jmp 0x40b58d
mov ecx, dword [esp + 0x28]
nop dword [eax]
cmp ecx, dword [esp + 0x64]
jae 0x40bc45
mov eax, dword [esp + 0x38]
cmp edi, eax
jae 0x40bc25
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 0x40b647
cmp ecx, dword [esp + 0x34]
cmovae ecx, dword [esp + 0x34]
mov dword [esp + 0x24], ecx
jmp 0x40b64d
mov ecx, ebx
mov dword [esp + 0x24], ebx
push ecx
push edi
push edx
call fcn.00423550
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 0x40b5fc
jmp 0x40b3bf
cmp ecx, 3
je 0x40bd97
cmp ecx, 1
jne 0x40b73d
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.004233f0
push 0x70
add edi, 0x90
push 9
push edi
call fcn.004233f0
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 0x40adcf
xor ebx, ebx
nop
cmp ebx, 3
jae 0x40b7c9
movsx eax, byte [ebx + 0x46845c]
cmp esi, eax
jae 0x40b77e
cmp edi, dword [esp + 0x38]
jae 0x40bc5c
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
or edx, eax
mov dword [esp + 0x30], edi
movsx eax, byte [ebx + 0x46845c]
add esi, 8
mov dword [esp + 0x1c], edx
cmp esi, eax
jb case.0x40aa40.9
mov cl, byte [ebx + 0x46845c]
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 + 0x46845c]
shr eax, cl
sub esi, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
movzx eax, word [ebx*2 + 0x466edc]
add eax, edx
mov dword [esp + 0x34], esi
mov edx, dword [esp + 0x1c]
mov dword [ecx + ebx*4 + 0x2c], eax
inc ebx
jmp 0x40b73f
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 0x40b855
cmp esi, 3
jae 0x40b825
nop dword [eax + eax]
cmp edi, dword [esp + 0x38]
jae 0x40bc7c
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.0x40aa40.10
movzx eax, byte [ebx + 0x466b40]
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 0x40b7e9
mov dword ds:[eax + 0x34], 0x13
jmp 0x40add3
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.004233f0
push 0x800
push 0
push dword [esp + 0x38]
call fcn.004233f0
mov ecx, dword [esp + 0x30]
add esp, 0x18
call fcn.0040a880
mov ecx, dword [esp + 0x18]
xor edx, edx
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + eax*4 + 0x2c]
test ecx, ecx
je 0x40b8e4
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 0x40b8d0
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 0x40b903
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 0x40b978
cmp ecx, 1
ja 0x40bd4a
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 0x40badb
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 0x40bab9
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 0x40b9d0
mov ecx, dword [esp + 0x2c]
cmp ecx, 0xa
ja 0x40ba34
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 0x40bab1
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 0x40ba21
jmp 0x40bab1
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 0x40ba57
mov word [edi], si
mov edi, esi
sub esi, 2
jmp 0x40ba5b
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
shr edx, 9
mov dword [esp + 0x4c], eax
cmp ecx, 0xb
jbe 0x40ba9d
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 0x40ba95
mov word [edi + eax*2 - 2], si
mov edi, esi
sub esi, 2
jmp 0x40ba98
movsx edi, cx
sub ebx, 1
jne 0x40ba72
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 0x40b9a2
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x30]
nop dword [eax + eax]
cmp ecx, 2
jne 0x40adcc
xor ebx, ebx
jmp 0x40ac10
jne 0x40bafa
test ebx, ebx
je case.0x40aa40.12
movsx ecx, byte [eax + str.out_of_memory]
mov dword [esp + 0x58], ecx
cmp esi, ecx
jae 0x40abaa
jmp case.0x40aa40.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 0x40be7d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x17
jmp 0x40be7d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 2
mov dword [eax], 0x18
jmp 0x40becd
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 3
jmp 0x40be7d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 5
jmp 0x40be7d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 6
jmp 0x40be7d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 7
jmp 0x40be7d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x33
jmp 0x40be7d
mov eax, dword ds:[esp + 0x18]
mov dword [esp + 0x20], 2
mov dword [eax], 0x34
jmp 0x40becd
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x26
jmp 0x40be7d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 2
mov dword [eax], 9
jmp 0x40becd
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0xb
jmp 0x40be7d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0xe
jmp 0x40be7d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x1a
jmp 0x40be7d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x1b
jmp 0x40be7d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 2
mov dword [eax], 0x35
jmp 0x40becd
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x19
jmp 0x40be7d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x12
jmp 0x40be7d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov dword [eax], 0x27
jmp 0x40becd
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov dword [eax], 0x23
jmp 0x40becd
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov dword [eax], 0x11
jmp 0x40becd
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov dword [eax], 0x15
jmp 0x40becd
mov eax, dword [esp + 0x18]
or ecx, 0xffffffff
mov dword [eax], 0xa
mov dword [esp + 0x20], ecx
jmp 0x40becd
mov eax, dword ds:[esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov dword [eax], 0x25
jmp 0x40becd
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x20
jmp 0x40be7d
cmp edi, dword [esp + 0x38]
jae 0x40be62
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.0x40aa40.21
test esi, esi
je case.0x40aa40.28
cmp esi, 8
jae 0x40be38
nop dword [eax + eax]
cmp edi, dword [esp + 0x38]
jae 0x40be43
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
add esi, 8
inc edi
or edx, eax
cmp esi, 8
jb case.0x40aa40.27
movzx eax, dl
shr edx, 8
sub esi, 8
jmp 0x40bdf3
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 0x40be7d
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.0x40aa40
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.0x40aa40
jmp 0x40becd
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.0x40aa40
cmp esi, 8
jb case.default.0x40aa40
dec edi
sub esi, 8
cmp edi, ecx
ja 0x40bed5
jmp case.default.0x40aa40
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 0x40c10d
nop
test ebx, ebx
js 0x40c10d
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 0x40c0ec
mov ebx, edx
xor edx, edx
mov dword [esp + 0x5c], edx
cmp ebx, 7
jbe 0x40c01f
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 0x40bfa0
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 0x40c0a9
sub eax, dword [esp + 0x5c]
cmp eax, 2
jb 0x40c095
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 0x40c060
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 0x40c0a4
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 0x40bf77
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 0x40c10d
test byte [ebp + 0x18], 1
je 0x40c10d
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.00421733
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.00421733
mov esp, ebp
pop ebp
ret 0x14