Function at 0x40a5c0
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 0x40a622
mov edx, dword [esi]
add edx, ebx
mov dword [esp + 0x64], edx
jmp 0x40a62a
mov dword [esp + 0x64], 0
mov eax, dword [ebp + 0x18]
and eax, 4
mov dword [esp + 0x50], eax
je 0x40a648
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x24], 0
jmp 0x40a668
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 0x40be0b
cmp ebx, dword [ebp + 0xc]
jb 0x40be0b
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.0x40a720
movups xmm0, xmmword [0x46a0f0]
movzx eax, byte [ecx + 0x40bebc]
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 + 0x40be38]
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 0x40b129
jmp 0x40a776
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x18]
cmp edi, dword [esp + 0x38]
jb 0x40a79c
test cl, 2
mov dword [esp + 0x44], 1
mov ecx, 0xfffffffc
mov dword [eax], 1
cmovne ecx, dword [esp + 0x44]
jmp 0x40bb5d
mov ecx, dword [esp + 0x18]
movzx eax, byte [edi]
inc edi
mov dword [ecx + 8], eax
jmp 0x40a7ad
mov ecx, dword [esp + 0x18]
cmp edi, dword [esp + 0x38]
jb 0x40a7d3
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 2
jmp 0x40bb5d
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 0x40a80b
test bl, 0x20
jne 0x40a80b
mov eax, ecx
and al, 0xf
cmp al, 8
jne 0x40a80b
xor ebx, ebx
jmp 0x40a810
mov ebx, 1
cmp dword [esp + 0x50], 0
mov dword [esp + 0x48], ebx
jne 0x40a844
shr ecx, 4
mov eax, 1
add ecx, 8
shl eax, cl
cmp eax, 0x8000
ja 0x40a839
cmp dword [esp + 0x24], eax
jb 0x40a839
xor eax, eax
jmp 0x40a83e
mov eax, 1
or ebx, eax
mov dword [esp + 0x48], ebx
test ebx, ebx
je 0x40b125
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov dword [eax], 0x24
jmp 0x40bbad
cmp edi, dword [esp + 0x38]
jae 0x40b9f3
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.0x40a720.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 + 0x468250]
add ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
cmp edx, 0x10
jne 0x40a8cf
movzx edx, byte [eax + ebx + 0x1ee2]
jmp 0x40a8d1
xor edx, edx
push ecx
add eax, 0x1ee3
push edx
add eax, ebx
push eax
call fcn.00422df0
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 0x40aa69
cmp esi, 0xf
jae 0x40a9df
mov eax, dword ds:[esp + 0x38]
sub eax, edi
cmp eax, 2
jge 0x40a9bb
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 0x40a955
sar eax, 9
test eax, eax
je case.0x40a720.11
cmp esi, eax
jae 0x40a9e3
jmp case.0x40a720.11
cmp esi, 0xa
jbe case.0x40a720.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 0x40a9e3
mov ecx, dword [esp + 0x34]
lea eax, [ecx + 1]
cmp esi, eax
jae 0x40a963
cmp edi, dword [esp + 0x38]
jae 0x40b7f2
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 0x40a929
jmp 0x40a9df
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 0x40aa0a
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
mov dword [esp + 0x3c], eax
jmp 0x40aa3f
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 0x40aa17
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 0x40b7d0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov byte [eax + ebx + 0x1ee3], cl
inc ebx
jmp 0x40a8f4
jne case.0x40a720.14
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 0x1ee3]
push eax
lea eax, [ecx + 0x1d8c]
push eax
call fcn.00422f50
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.00422f50
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 0x40b545
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
sub eax, edi
mov dword [esp + 0x44], eax
cmp eax, 4
jl 0x40ac2a
mov eax, dword ds:[esp + 0x64]
sub eax, ecx
cmp eax, 2
jl 0x40ac26
cmp esi, 0xf
jae 0x40ab10
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 0x40ab2b
mov ecx, ebx
sar ecx, 9
jmp 0x40ab58
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 0x40ab34
shr edx, cl
sub esi, ecx
mov dword [esp + 0x1c], edx
test ebx, 0x100
jne 0x40ad7c
cmp esi, 0xf
jae 0x40ab93
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 0x40abb2
mov ecx, eax
sar ecx, 9
jmp 0x40abec
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 0x40abc0
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 0x40ad76
mov byte [ecx], al
mov ecx, dword [esp + 0x28]
add ecx, 2
mov dword [esp + 0x28], ecx
jmp 0x40aac2
mov eax, dword [esp + 0x44]
cmp esi, 0xf
jae 0x40acf5
cmp eax, 2
jge 0x40acd1
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 0x40ac6a
sar eax, 9
test eax, eax
je case.0x40a720.15
nop dword [eax + eax]
cmp esi, eax
jae 0x40acf5
jmp case.0x40a720.15
cmp esi, 0xa
jbe case.0x40a720.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 0x40acf5
lea eax, [ecx + 1]
cmp esi, eax
jae 0x40ac78
cmp edi, dword [esp + 0x38]
jae 0x40b812
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 0x40ac3c
jmp 0x40acf5
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 0x40ad16
mov ecx, ebx
sar ecx, 9
and ebx, 0x1ff
jmp 0x40ad44
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 0x40ad20
shr edx, cl
sub esi, ecx
mov dword [esp + 0x1c], edx
cmp ebx, 0x100
jae 0x40ad7c
mov ecx, dword ds:[esp + 0x28]
cmp ecx, dword [esp + 0x64]
jae 0x40b832
mov byte [ecx], bl
inc ecx
mov dword [esp + 0x28], ecx
jmp 0x40aac2
mov dword [esp + 0x28], ecx
mov ebx, eax
and ebx, 0x1ff
mov dword [esp + 0x48], ebx
cmp ebx, 0x100
je 0x40b09f
movzx ecx, byte [ebx + 0x467107]
movzx ebx, word [ebx*2 + 0x466ee6]
mov dword [esp + 0x58], ecx
test ecx, ecx
je 0x40ade4
cmp esi, ecx
jae 0x40add0
cmp edi, dword [esp + 0x38]
jae 0x40b9d3
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.0x40a720.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 0x40aebd
mov eax, dword [esp + 0x38]
sub eax, edi
cmp eax, 2
jge 0x40ae99
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 0x40ae2a
sar eax, 9
test eax, eax
je case.0x40a720.18
nop
cmp esi, eax
jae 0x40aec1
jmp case.0x40a720.18
cmp esi, 0xa
jbe case.0x40a720.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 0x40aec1
mov ecx, dword [esp + 0x34]
lea eax, [ecx + 1]
cmp esi, eax
jae 0x40ae38
cmp edi, dword [esp + 0x38]
jae 0x40b97c
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 0x40adfc
jmp 0x40aebd
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 0x40aee4
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
jmp 0x40af1c
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 0x40aef0
shr edx, cl
sub esi, ecx
movzx ecx, byte [eax + 0x467168]
movzx eax, word [eax*2 + 0x467128]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x3c], eax
test ecx, ecx
je 0x40af7d
nop
cmp esi, ecx
jae 0x40af67
cmp edi, dword [esp + 0x38]
jae 0x40b99c
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.0x40a720.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 0x40af98
cmp eax, ecx
ja 0x40af98
test ecx, ecx
jne 0x40afa6
test byte ds:[ebp + 0x18], 4
jne case.0x40a720.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 0x40b00d
mov ecx, dword [esp + 0x28]
mov eax, ebx
dec ebx
test eax, eax
je 0x40aac2
jmp 0x40afdb
mov ecx, dword [esp + 0x28]
nop dword [eax + eax]
cmp ecx, dword [esp + 0x64]
jae 0x40b9bc
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 0x40afca
cmp ebx, 2
jbe 0x40b057
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 0x40b030
mov dword [esp + 0x28], edx
mov edx, dword ds:[esp + 0x1c]
test ebx, ebx
je 0x40aabe
mov edx, dword [esp + 0x28]
mov al, byte [ecx]
mov byte [edx], al
cmp ebx, 1
jbe 0x40b08c
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 0x40aac2
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
add ecx, ebx
mov dword [esp + 0x28], ecx
jmp 0x40aac2
mov eax, dword [esp + 0x18]
test byte [eax + 0x14], 1
je 0x40b129
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x40b0e4
nop word [eax + eax]
cmp edi, dword [esp + 0x38]
jae 0x40baa5
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.0x40a720.20
mov eax, dword [esp + 0x5c]
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
cmp edi, eax
jbe 0x40b104
cmp esi, 8
jb 0x40b104
dec edi
sub esi, 8
cmp edi, eax
ja 0x40b0f5
mov eax, dword [esp + 0x6c]
mov ecx, esi
shl eax, cl
not eax
and edx, eax
test byte [ebp + 0x18], 1
je case.0x40a720.21
xor ebx, ebx
jmp 0x40bae9
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp esi, 3
jae 0x40b156
cmp edi, dword [esp + 0x38]
jae 0x40b849
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.0x40a720.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 0x40b38b
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x40b1a8
cmp edi, dword [esp + 0x38]
jae 0x40b869
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.0x40a720.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 0x40b229
test esi, esi
je case.0x40a720.6
cmp esi, 8
jae 0x40b1f2
cmp edi, dword [esp + 0x38]
jae 0x40b889
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.0x40a720.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 0x40b1b7
cmp edi, dword [esp + 0x38]
jae 0x40b8a9
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 0x40b1b7
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.0x40a720.26
mov ecx, dword [esp + 0x28]
test ebx, ebx
je 0x40b09f
test esi, esi
je 0x40b2dc
nop dword [eax]
cmp esi, 8
jae 0x40b2a5
cmp edi, dword [esp + 0x38]
jae 0x40b8c9
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.0x40a720.29
movzx eax, dl
shr edx, 8
sub esi, 8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], edx
jmp 0x40b2bc
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x64]
jae 0x40b8e9
mov byte [ecx], al
inc ecx
dec ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], ebx
jmp 0x40b26d
mov ecx, dword [esp + 0x28]
nop dword [eax]
cmp ecx, dword [esp + 0x64]
jae 0x40b925
mov eax, dword [esp + 0x38]
cmp edi, eax
jae 0x40b905
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 0x40b327
cmp ecx, dword [esp + 0x34]
cmovae ecx, dword [esp + 0x34]
mov dword [esp + 0x24], ecx
jmp 0x40b32d
mov ecx, ebx
mov dword [esp + 0x24], ebx
push ecx
push edi
push edx
call fcn.00422f50
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 0x40b2dc
jmp 0x40b09f
cmp ecx, 3
je 0x40ba77
cmp ecx, 1
jne 0x40b41d
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.00422df0
push 0x70
add edi, 0x90
push 9
push edi
call fcn.00422df0
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 0x40aaaf
xor ebx, ebx
nop
cmp ebx, 3
jae 0x40b4a9
movsx eax, byte [ebx + 0x46825c]
cmp esi, eax
jae 0x40b45e
cmp edi, dword [esp + 0x38]
jae 0x40b93c
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
or edx, eax
mov dword [esp + 0x30], edi
movsx eax, byte [ebx + 0x46825c]
add esi, 8
mov dword [esp + 0x1c], edx
cmp esi, eax
jb case.0x40a720.9
mov cl, byte [ebx + 0x46825c]
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 + 0x46825c]
shr eax, cl
sub esi, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
movzx eax, word [ebx*2 + 0x466cdc]
add eax, edx
mov dword [esp + 0x34], esi
mov edx, dword [esp + 0x1c]
mov dword [ecx + ebx*4 + 0x2c], eax
inc ebx
jmp 0x40b41f
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 0x40b535
cmp esi, 3
jae 0x40b505
nop dword [eax + eax]
cmp edi, dword [esp + 0x38]
jae 0x40b95c
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.0x40a720.10
movzx eax, byte [ebx + 0x466940]
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 0x40b4c9
mov dword ds:[eax + 0x34], 0x13
jmp 0x40aab3
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.00422df0
push 0x800
push 0
push dword [esp + 0x38]
call fcn.00422df0
mov ecx, dword [esp + 0x30]
add esp, 0x18
call fcn.0040a560
mov ecx, dword [esp + 0x18]
xor edx, edx
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + eax*4 + 0x2c]
test ecx, ecx
je 0x40b5c4
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 0x40b5b0
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 0x40b5e3
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 0x40b658
cmp ecx, 1
ja 0x40ba2a
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 0x40b7bb
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 0x40b799
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 0x40b6b0
mov ecx, dword [esp + 0x2c]
cmp ecx, 0xa
ja 0x40b714
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 0x40b791
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 0x40b701
jmp 0x40b791
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 0x40b737
mov word [edi], si
mov edi, esi
sub esi, 2
jmp 0x40b73b
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
shr edx, 9
mov dword [esp + 0x4c], eax
cmp ecx, 0xb
jbe 0x40b77d
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 0x40b775
mov word [edi + eax*2 - 2], si
mov edi, esi
sub esi, 2
jmp 0x40b778
movsx edi, cx
sub ebx, 1
jne 0x40b752
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 0x40b682
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x30]
nop dword [eax + eax]
cmp ecx, 2
jne 0x40aaac
xor ebx, ebx
jmp 0x40a8f0
jne 0x40b7da
test ebx, ebx
je case.0x40a720.12
movsx ecx, byte [eax + str.out_of_memory]
mov dword [esp + 0x58], ecx
cmp esi, ecx
jae 0x40a88a
jmp case.0x40a720.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 0x40bb5d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x17
jmp 0x40bb5d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 2
mov dword [eax], 0x18
jmp 0x40bbad
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 3
jmp 0x40bb5d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 5
jmp 0x40bb5d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 6
jmp 0x40bb5d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 7
jmp 0x40bb5d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x33
jmp 0x40bb5d
mov eax, dword ds:[esp + 0x18]
mov dword [esp + 0x20], 2
mov dword [eax], 0x34
jmp 0x40bbad
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x26
jmp 0x40bb5d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 2
mov dword [eax], 9
jmp 0x40bbad
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0xb
jmp 0x40bb5d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0xe
jmp 0x40bb5d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x1a
jmp 0x40bb5d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x1b
jmp 0x40bb5d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 2
mov dword [eax], 0x35
jmp 0x40bbad
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x19
jmp 0x40bb5d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x12
jmp 0x40bb5d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov dword [eax], 0x27
jmp 0x40bbad
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov dword [eax], 0x23
jmp 0x40bbad
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov dword [eax], 0x11
jmp 0x40bbad
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov dword [eax], 0x15
jmp 0x40bbad
mov eax, dword [esp + 0x18]
or ecx, 0xffffffff
mov dword [eax], 0xa
mov dword [esp + 0x20], ecx
jmp 0x40bbad
mov eax, dword ds:[esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov dword [eax], 0x25
jmp 0x40bbad
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0x20
jmp 0x40bb5d
cmp edi, dword [esp + 0x38]
jae 0x40bb42
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.0x40a720.21
test esi, esi
je case.0x40a720.28
cmp esi, 8
jae 0x40bb18
nop dword [eax + eax]
cmp edi, dword [esp + 0x38]
jae 0x40bb23
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
add esi, 8
inc edi
or edx, eax
cmp esi, 8
jb case.0x40a720.27
movzx eax, dl
shr edx, 8
sub esi, 8
jmp 0x40bad3
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 0x40bb5d
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.0x40a720
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.0x40a720
jmp 0x40bbad
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.0x40a720
cmp esi, 8
jb case.default.0x40a720
dec edi
sub esi, 8
cmp edi, ecx
ja 0x40bbb5
jmp case.default.0x40a720
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 0x40bded
nop
test ebx, ebx
js 0x40bded
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 0x40bdcc
mov ebx, edx
xor edx, edx
mov dword [esp + 0x5c], edx
cmp ebx, 7
jbe 0x40bcff
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 0x40bc80
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 0x40bd89
sub eax, dword [esp + 0x5c]
cmp eax, 2
jb 0x40bd75
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 0x40bd40
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 0x40bd84
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 0x40bc57
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 0x40bded
test byte [ebp + 0x18], 1
je 0x40bded
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.00421141
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.00421141
mov esp, ebp
pop ebp
ret 0x14