Function at 0x420be8
Capabilities:
Encrypt data using rc4 ksa
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x10c
mov ebp, dword [esp + 0x120]
mov edi, dword [esp + 0x128]
mov eax, dword [esp + 0x124]
add eax, dword [edi]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x134]
mov eax, dword [eax]
mov edi, dword [esp + 0x130]
add edi, eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], 0xffffffff
mov edi, dword [esp + 0x138]
and edi, 4
mov dword [esp + 0x64], edi
jne 0x420c51
mov edx, dword [esp + 0x130]
sub edx, dword [esp + 0x12c]
lea eax, [eax + edx - 1]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
inc eax
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x50]
test eax, edi
jne 0x420c72
mov eax, dword [esp + 0x12c]
cmp dword [esp + 0x130], eax
jae 0x420c96
mov eax, dword [esp + 0x134]
mov dword [eax], 0
mov eax, dword [esp + 0x128]
mov dword [eax], 0
mov ebx, 0xfffffffd
jmp 0x42284e
mov eax, dword [ebp + 4]
mov dword [esp + 0x14], eax
mov esi, dword [ebp + 0x38]
mov edi, dword [ebp + 0x3c]
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x48], eax
cmp dword [ebp], 0x35
ja case.0x420ccc.4
mov eax, dword [ebp]
jmp dword [eax*4 + 0x427aec]
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], 0
mov dword [ebp + 0x1c], 1
mov dword [ebp + 0x10], 1
test byte [esp + 0x138], 1
jne 0x420d38
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
xor esi, esi
xor edi, edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], 0
jmp 0x420eb3
xor esi, esi
xor edi, edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x124], eax
jb 0x420d97
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 1
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
jmp 0x420de0
mov eax, dword [esp + 0x124]
inc eax
mov edx, dword [esp + 0x124]
movzx edx, byte [edx]
mov dword [ebp + 8], edx
jmp 0x420db5
mov eax, dword [esp + 0x124]
cmp eax, dword [esp + 0x40]
jb 0x420de9
mov edx, dword [esp + 0x138]
and edx, 2
cmp edx, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 2
mov edx, dword [esp + 0x130]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
jmp 0x422677
lea edx, [eax + 1]
mov dword [esp + 0x20], edx
movzx eax, byte [eax]
mov byte [esp + 0x18], al
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, ecx
shl edx, 8
add eax, edx
mov ebx, 0x1f
xor edx, edx
div ebx
mov eax, 1
test edx, edx
jne 0x420e2b
test byte [esp + 0x18], 0x20
jne 0x420e2b
mov eax, ecx
and eax, 0xf
cmp eax, 8
setne al
movzx eax, al
mov dword [esp + 0x18], eax
cmp dword [esp + 0x64], 0
jne 0x420e63
shr ecx, 4
add ecx, 8
mov edx, 1
shl edx, cl
mov ebx, 1
cmp edx, 0x8000
ja 0x420e5d
mov edx, dword [esp + 0x24]
shr edx, cl
xor ebx, ebx
test edx, edx
sete bl
or eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x18], 0
je 0x420f0b
jmp 0x420e86
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [ebp], 0x24
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
jmp 0x422674
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x20], edx
jb 0x420edc
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 3
jmp 0x422677
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
cmp dword [esp + 0x14], 2
jbe 0x420eb3
mov eax, esi
and eax, 7
mov dword [ebp + 0x14], eax
shrd esi, edi, 3
shr edi, 3
sub dword [esp + 0x14], 3
shr eax, 1
mov dword [ebp + 0x18], eax
jne 0x4212bb
jmp 0x420fa1
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x20], edx
jb 0x420f72
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 5
jmp 0x422677
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
mov eax, dword [esp + 0x14]
and eax, 7
cmp eax, dword [esp + 0x14]
ja 0x420f49
mov ecx, dword [esp + 0x14]
and ecx, 7
shrd esi, edi, cl
shr edi, cl
xor eax, eax
test cl, 0x20
cmovne esi, edi
cmovne edi, eax
and dword [esp + 0x14], 0xfffffff8
mov dword [esp + 0x18], 0
cmp dword [esp + 0x14], 0
je 0x421085
jmp 0x42104d
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x20], edx
jb 0x42101e
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 6
jmp 0x422677
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
cmp dword [esp + 0x14], 7
jbe 0x420ff5
mov edx, dword [esp + 0x18]
mov eax, esi
mov byte [ebp + edx + 0x2924], al
shrd esi, edi, 8
shr edi, 8
sub dword [esp + 0x14], 8
jmp 0x4210c8
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x20], edx
jb 0x4210ae
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 7
jmp 0x422677
mov eax, dword [esp + 0x20]
mov al, byte [eax]
mov edx, dword [esp + 0x18]
mov byte [ebp + edx + 0x2924], al
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 3
jbe 0x420fd2
movzx eax, word [ebp + 0x2924]
mov edx, eax
mov dword [esp + 0x18], eax
mov ax, word [ebp + 0x2926]
not eax
cmp dx, ax
je 0x4211e4
jmp 0x42110e
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [ebp], 0x27
jmp 0x422674
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x20], edx
jb 0x421159
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x33
jmp 0x422677
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
cmp dword [esp + 0x14], 7
jbe 0x421130
mov eax, esi
movzx eax, al
mov dword [esp + 0x30], eax
shrd esi, edi, 8
shr edi, 8
sub dword [esp + 0x14], 8
jmp 0x4211bc
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x24], edx
jb 0x4211cf
mov dword [ebp], 0x34
jmp 0x421222
mov edx, dword [esp + 0x24]
mov al, byte [esp + 0x30]
mov byte [edx], al
dec dword [esp + 0x18]
mov eax, edx
inc eax
mov dword [esp + 0x24], eax
cmp dword [esp + 0x18], 0
je 0x4212ab
cmp dword [esp + 0x14], 0
jne 0x421188
jmp 0x4212ab
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x24], edx
jb 0x421242
mov dword [ebp], 9
mov ebx, 2
jmp 0x422677
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x20], edx
jb 0x42126b
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x26
jmp 0x422677
mov ebx, edx
sub ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x24]
cmp ebx, eax
cmova ebx, eax
cmp ebx, dword [esp + 0x18]
cmova ebx, dword [esp + 0x18]
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
add dword [esp + 0x20], ebx
add dword [esp + 0x24], ebx
sub dword [esp + 0x18], ebx
cmp dword [esp + 0x18], 0
jne 0x421211
jmp 0x422433
cmp eax, 3
jne 0x4212e4
jmp 0x4212d8
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [ebp], 0xa
jmp 0x422674
dec eax
jne 0x42134e
mov dword [ebp + 0x2c], 0x120
mov dword [ebp + 0x30], 0x20
mov dword [esp + 8], 0x20
mov dword [esp + 4], 5
lea eax, [ebp + 0xde4]
mov dword [esp], eax
call sub.msvcrt.dll_memset
xor eax, eax
mov byte [ebp + eax + 0x44], 8
inc eax
cmp eax, 0x90
jne 0x421315
mov byte [ebp + eax + 0x44], 9
inc eax
cmp eax, 0x100
jne 0x421322
mov byte [ebp + eax + 0x44], 7
inc eax
cmp eax, 0x118
jne 0x42132f
mov byte [ebp + eax + 0x44], 8
inc eax
cmp eax, 0x120
jne 0x42133c
jmp 0x4218d5
mov dword [esp + 0x18], 0
jmp 0x4213c6
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x20], ecx
jb 0x421397
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0xb
jmp 0x422677
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
mov eax, dword [esp + 0x18]
movsx eax, byte [eax + 0x427ae3]
cmp eax, dword [esp + 0x14]
ja 0x42136e
mov eax, dword [esp + 0x18]
movsx edx, byte [eax + 0x427ae3]
mov ecx, edx
mov eax, 1
shl eax, cl
dec eax
and eax, esi
shrd esi, edi, cl
shr edi, cl
xor ebx, ebx
test dl, 0x20
cmovne esi, edi
cmovne edi, ebx
sub dword [esp + 0x14], edx
mov ecx, dword [esp + 0x18]
add eax, dword [ecx*4 + 0x42a120]
mov dword [ebp + ecx*4 + 0x2c], eax
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 2
jbe 0x4213c6
mov dword [esp + 8], 0x120
mov dword [esp + 4], 0
lea eax, [ebp + 0x1b84]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 0x18], 0
jmp 0x4214e3
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x20], ecx
jb 0x421486
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0xe
jmp 0x422677
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
cmp dword [esp + 0x14], 2
jbe 0x42145d
mov edx, esi
and edx, 7
shrd esi, edi, 3
shr edi, 3
sub dword [esp + 0x14], 3
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + 0x42a580]
mov byte [ebp + eax + 0x1b84], dl
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp dword [ebp + 0x34], eax
ja 0x4214b5
mov dword [ebp + 0x34], 0x13
jmp 0x4218d5
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [ebp], 0x23
jmp 0x422674
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x20], ecx
jb 0x421559
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x10
jmp 0x422677
mov eax, dword [esp + 0x20]
lea ebx, [eax + 1]
movzx eax, byte [eax]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
test cl, 0x20
je 0x421577
mov edx, eax
xor eax, eax
mov ecx, edx
or eax, esi
mov edx, ecx
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
cmp dword [esp + 0x14], 0xe
mov dword [esp + 0x20], ebx
ja 0x421699
mov eax, esi
and eax, 0x3ff
movsx ebx, word [ebp + eax*2 + 0x1ca4]
test ebx, ebx
js 0x4215be
sar ebx, 9
je 0x421530
cmp dword [esp + 0x14], ebx
jae 0x421699
jmp 0x421530
cmp dword [esp + 0x14], 0xa
jbe 0x421530
mov ecx, 0xa
lea eax, [ecx + 1]
mov dword [esp + 0x38], eax
mov eax, esi
mov edx, edi
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x4215e7
mov eax, edx
xor edx, edx
and eax, 1
sub eax, ebx
movsx ebx, word [ebp + eax*2 + 0x24a2]
test ebx, ebx
jns 0x421699
lea eax, [ecx + 2]
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x14], eax
jae 0x4215ce
jmp 0x421530
mov ecx, 0xa
lea eax, [ecx + 1]
mov dword [esp + 0x38], eax
mov eax, esi
mov edx, edi
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x42162c
mov eax, edx
xor edx, edx
and eax, 1
sub eax, ebx
movsx ebx, word [ebp + eax*2 + 0x24a2]
mov ecx, dword [esp + 0x38]
test ebx, ebx
js 0x421613
mov dword [esp + 0x30], ebx
mov cl, byte [esp + 0x38]
shrd esi, edi, cl
shr edi, cl
xor eax, eax
test cl, 0x20
cmovne esi, edi
cmovne edi, eax
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x14], ecx
cmp ebx, 0xf
jg 0x4216c6
mov ebx, dword [esp + 0x18]
mov al, byte [esp + 0x30]
mov byte [ebp + ebx + 0x2928], al
mov eax, ebx
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x30]
add edx, eax
cmp edx, dword [esp + 0x18]
jbe 0x421877
cmp dword [esp + 0x14], 0xe
jbe 0x4217fb
mov eax, esi
and eax, 0x3ff
movsx ebx, word [ebp + eax*2 + 0x1ca4]
mov eax, ebx
test ebx, ebx
js 0x42160e
sar ebx, 9
mov dword [esp + 0x38], ebx
mov ebx, eax
and ebx, 0x1ff
jmp 0x421641
cmp dword [esp + 0x30], 0x10
jne 0x421708
cmp dword [esp + 0x18], 0
jne 0x421708
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 0x10
jmp 0x4216fc
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [ebp], 0x11
jmp 0x422674
movsx eax, byte [ebx + 0x427ac8]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x14], eax
jmp 0x42178f
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x20], ecx
jb 0x421758
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x12
jmp 0x422677
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x28]
jb 0x42172f
mov eax, 1
mov cl, byte [esp + 0x28]
shl eax, cl
dec eax
and eax, esi
shrd esi, edi, cl
shr edi, cl
xor edx, edx
test cl, 0x20
cmovne esi, edi
cmovne edi, edx
mov ecx, dword [esp + 0x28]
sub dword [esp + 0x14], ecx
mov edx, dword [esp + 0x30]
movsx ebx, byte [edx + 0x427ad7]
add ebx, eax
xor eax, eax
cmp edx, 0x10
jne 0x4217d7
mov eax, dword [esp + 0x18]
movzx eax, byte [ebp + eax + 0x2927]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
lea eax, [ebp + eax + 0x2928]
mov dword [esp], eax
call sub.msvcrt.dll_memset
add dword [esp + 0x18], ebx
jmp 0x42167c
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x20]
dec eax
jle 0x421597
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + 1]
xor edx, edx
mov ebx, dword [esp + 0x14]
lea ecx, [ebx + 8]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x20]
movzx eax, byte [eax]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0x30]
or eax, ecx
mov edx, dword [esp + 0x34]
or edx, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x20], 2
add dword [esp + 0x14], 0x10
jmp 0x421699
jne 0x421891
jmp 0x42189d
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [ebp], 0x15
jmp 0x422674
lea ebx, [ebp + 0x2928]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
lea eax, [ebp + 0x44]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x30]
mov dword [esp + 8], eax
add ebx, dword [ebp + 0x2c]
mov dword [esp + 4], ebx
lea eax, [ebp + 0xde4]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
dec dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x58], eax
test eax, eax
js 0x421b31
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0
lea eax, [esp + 0x7c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
imul ebx, dword [esp + 0x58], 0xda0
mov dword [esp + 8], 0x800
mov dword [esp + 4], 0
lea eax, [ebp + ebx + 0x164]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x480
mov dword [esp + 4], 0
lea eax, [ebp + ebx + 0x964]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x68], eax
mov edx, dword [ebp + eax*4 + 0x2c]
lea eax, [ebp + ebx]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], 0
cmp edx, dword [esp + 0x54]
je 0x42197e
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
movzx eax, byte [eax + ecx + 0x44]
inc dword [esp + eax*4 + 0x7c]
inc dword [esp + 0x54]
jmp 0x421961
mov dword [esp + 0xc0], 0
mov dword [esp + 0xbc], 0
xor eax, eax
xor ecx, ecx
mov edx, 1
mov ebx, dword [esp + edx*4 + 0x7c]
add ecx, ebx
add eax, ebx
add eax, eax
inc edx
mov dword [esp + edx*4 + 0xbc], eax
cmp edx, 0x10
jne 0x42199d
cmp eax, 0x10000
je 0x4219c4
cmp ecx, 1
ja 0x42150e
mov dword [esp + 0x44], 0
mov dword [esp + 0x38], 0xffffffff
imul eax, dword [esp + 0x58], 0x6d0
mov dword [esp + 0x60], eax
mov ebx, dword [esp + 0x44]
cmp dword [esp + 0x54], ebx
je 0x421b08
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x44]
movzx ebx, byte [eax + edx + 0x44]
mov byte [esp + 0x58], bl
test ebx, ebx
je 0x421aff
mov ecx, dword [esp + ebx*4 + 0xbc]
lea eax, [ecx + 1]
mov dword [esp + ebx*4 + 0xbc], eax
mov dword [esp + 0x6c], ebx
xor eax, eax
add eax, eax
mov edx, ecx
and edx, 1
or eax, edx
shr ecx, 1
dec dword [esp + 0x6c]
jne 0x421a1e
cmp ebx, 0xa
ja 0x421a67
mov ebx, dword [esp + 0x58]
shl ebx, 9
or ebx, dword [esp + 0x44]
mov edx, 1
mov cl, byte [esp + 0x58]
shl edx, cl
mov ecx, edx
cmp eax, 0x3ff
ja 0x421aff
mov edx, dword [esp + 0x5c]
mov word [edx + eax*2 + 0x164], bx
add eax, ecx
jmp 0x421a4c
mov ecx, eax
and ecx, 0x3ff
add ecx, dword [esp + 0x60]
add ecx, ecx
add ecx, ebp
mov edx, ecx
movsx ecx, word [ecx + 0x164]
test ecx, ecx
jne 0x421a9e
mov ecx, edx
mov edx, dword [esp + 0x38]
mov word [ecx + 0x164], dx
mov ecx, dword [esp + 0x38]
mov edx, ecx
sub edx, 2
mov dword [esp + 0x38], edx
shr eax, 9
mov edx, eax
mov eax, edx
shr eax, 1
mov edx, eax
and eax, 1
sub ecx, eax
not ecx
cmp ebx, 0xb
je 0x421aeb
add ecx, dword [esp + 0x60]
add ecx, ecx
lea eax, [ebp + ecx]
movsx ecx, word [eax + 0x964]
cmp word [eax + 0x964], 0
jne 0x421ae8
mov ecx, dword [esp + 0x38]
mov word [eax + 0x964], cx
mov ecx, dword [esp + 0x38]
mov eax, ecx
sub eax, 2
mov dword [esp + 0x38], eax
dec ebx
jmp 0x421aa3
mov eax, dword [esp + 0x60]
lea eax, [ecx + eax + 0x4b0]
mov ebx, dword [esp + 0x44]
mov word [ebp + eax*2 + 4], bx
inc dword [esp + 0x44]
jmp 0x4219e0
cmp dword [esp + 0x68], 2
jne 0x4218d2
mov dword [esp + 0x18], 0
jmp 0x42167c
mov edx, dword [esp + 0x24]
mov al, byte [esp + 0x18]
mov byte [edx], al
mov eax, edx
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x20]
cmp eax, 3
jle 0x421b52
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x24]
dec eax
jg 0x421d76
jmp 0x421c50
cmp dword [esp + 0x14], 0xe
ja 0x421cbf
dec eax
jg 0x421c57
mov eax, esi
and eax, 0x3ff
movsx ebx, word [ebp + eax*2 + 0x164]
test ebx, ebx
js 0x421b88
sar ebx, 9
je 0x421be7
cmp dword [esp + 0x14], ebx
jae 0x421cbf
jmp 0x421be7
cmp dword [esp + 0x14], 0xa
jbe 0x421be7
mov ecx, 0xa
lea eax, [ecx + 1]
mov dword [esp + 0x38], eax
mov eax, esi
mov edx, edi
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x421bad
mov eax, edx
xor edx, edx
and eax, 1
sub eax, ebx
movsx ebx, word [ebp + eax*2 + 0x962]
test ebx, ebx
jns 0x421cbf
lea eax, [ecx + 2]
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x14], eax
jae 0x421b94
jmp 0x421be7
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x20], ecx
jb 0x421c10
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x17
jmp 0x422677
mov eax, dword [esp + 0x20]
lea ebx, [eax + 1]
movzx eax, byte [eax]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
test cl, 0x20
je 0x421c2e
mov edx, eax
xor eax, eax
mov ecx, edx
or eax, esi
mov edx, ecx
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
cmp dword [esp + 0x14], 0xe
mov dword [esp + 0x20], ebx
jbe 0x421b64
jmp 0x421cbf
cmp dword [esp + 0x14], 0xe
ja 0x421cbf
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + 1]
xor edx, edx
mov ebx, dword [esp + 0x14]
lea ecx, [ebx + 8]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x20]
movzx eax, byte [eax]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0x18]
or eax, ecx
mov edx, dword [esp + 0x1c]
or edx, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x20], 2
add dword [esp + 0x14], 0x10
mov eax, esi
and eax, 0x3ff
movsx ebx, word [ebp + eax*2 + 0x164]
mov eax, ebx
test ebx, ebx
js 0x421ce5
sar ebx, 9
mov dword [esp + 0x38], ebx
mov ebx, eax
and ebx, 0x1ff
jmp 0x421d18
mov ecx, 0xa
lea eax, [ecx + 1]
mov dword [esp + 0x38], eax
mov eax, esi
mov edx, edi
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x421d03
mov eax, edx
xor edx, edx
and eax, 1
sub eax, ebx
movsx ebx, word [ebp + eax*2 + 0x962]
mov ecx, dword [esp + 0x38]
test ebx, ebx
js 0x421cea
mov dword [esp + 0x18], ebx
mov cl, byte [esp + 0x38]
shrd esi, edi, cl
shr edi, cl
xor eax, eax
test cl, 0x20
cmovne esi, edi
cmovne edi, eax
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x14], ecx
cmp ebx, 0xff
jg 0x421ec8
jmp 0x421d5c
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x4c]
cmp dword [esp + 0x24], ebx
jb 0x421b20
mov dword [ebp], 0x18
jmp 0x421222
cmp dword [esp + 0x14], 0x1d
ja 0x421dab
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x20], 4
add dword [esp + 0x14], 0x20
mov eax, esi
and eax, 0x3ff
movsx eax, word [ebp + eax*2 + 0x164]
mov dword [esp + 0x38], eax
test eax, eax
js 0x421dc9
sar eax, 9
mov ebx, eax
jmp 0x421e00
mov ecx, 0xa
lea ebx, [ecx + 1]
mov eax, esi
mov edx, edi
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x421de3
mov eax, edx
xor edx, edx
mov ecx, eax
and ecx, 1
mov edx, ecx
sub edx, dword [esp + 0x38]
movsx eax, word [ebp + edx*2 + 0x962]
mov dword [esp + 0x38], eax
mov ecx, ebx
test eax, eax
js 0x421dce
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov ecx, ebx
shrd esi, edi, cl
shr edi, cl
xor edx, edx
test bl, 0x20
cmovne esi, edi
cmovne edi, edx
sub dword [esp + 0x14], ebx
bt eax, 8
jb 0x421ec8
mov eax, esi
and eax, 0x3ff
movsx eax, word [ebp + eax*2 + 0x164]
mov dword [esp + 0x44], eax
test eax, eax
js 0x421e46
mov ebx, eax
sar ebx, 9
jmp 0x421e7d
mov ecx, 0xa
lea ebx, [ecx + 1]
mov eax, esi
mov edx, edi
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x421e60
mov eax, edx
xor edx, edx
mov ecx, eax
and ecx, 1
mov eax, ecx
sub eax, dword [esp + 0x44]
movsx eax, word [ebp + eax*2 + 0x962]
mov dword [esp + 0x44], eax
mov ecx, ebx
test eax, eax
js 0x421e4b
mov ecx, ebx
shrd esi, edi, cl
shr edi, cl
xor eax, eax
test bl, 0x20
cmovne esi, edi
cmovne edi, eax
sub dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
mov dl, byte [esp + 0x38]
mov byte [eax], dl
bt dword [esp + 0x44], 8
jae 0x421eb3
inc dword [esp + 0x24]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
jmp 0x421ec8
mov eax, dword [esp + 0x24]
mov dl, byte [esp + 0x44]
mov byte [eax + 1], dl
add dword [esp + 0x24], 2
jmp 0x421b31
and dword [esp + 0x18], 0x1ff
cmp dword [esp + 0x18], 0x100
je 0x422433
mov ebx, dword [esp + 0x18]
sub ebx, 0x101
mov eax, dword [ebx*4 + 0x42a0a0]
mov dword [esp + 0x28], eax
mov eax, dword [ebx*4 + 0x42a020]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x28], 0
je 0x421fb5
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x14], ecx
jmp 0x421f89
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x40]
cmp dword [esp + 0x20], ebx
jb 0x421f52
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x19
jmp 0x422677
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x28]
jb 0x421f29
mov eax, 1
mov cl, byte [esp + 0x28]
shl eax, cl
dec eax
and eax, esi
shrd esi, edi, cl
shr edi, cl
xor edx, edx
test cl, 0x20
cmovne esi, edi
cmovne edi, edx
mov ecx, dword [esp + 0x28]
sub dword [esp + 0x14], ecx
add dword [esp + 0x18], eax
cmp dword [esp + 0x14], 0xe
ja 0x422123
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x20]
dec eax
jg 0x4220bb
mov eax, esi
and eax, 0x3ff
movsx ebx, word [ebp + eax*2 + 0xf04]
test ebx, ebx
js 0x421ff3
sar ebx, 9
je 0x422052
cmp dword [esp + 0x14], ebx
jae 0x422123
jmp 0x422052
cmp dword [esp + 0x14], 0xa
jbe 0x422052
mov ecx, 0xa
lea eax, [ecx + 1]
mov dword [esp + 0x38], eax
mov eax, esi
mov edx, edi
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x422018
mov eax, edx
xor edx, edx
and eax, 1
sub eax, ebx
movsx ebx, word [ebp + eax*2 + 0x1702]
test ebx, ebx
jns 0x422123
lea eax, [ecx + 2]
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x14], eax
jae 0x421fff
jmp 0x422052
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x20], ecx
jb 0x42207b
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x1a
jmp 0x422677
mov eax, dword [esp + 0x20]
lea ebx, [eax + 1]
movzx eax, byte [eax]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
test cl, 0x20
je 0x422099
mov edx, eax
xor eax, eax
mov ecx, edx
or eax, esi
mov edx, ecx
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
cmp dword [esp + 0x14], 0xe
mov dword [esp + 0x20], ebx
jbe 0x421fcf
jmp 0x422123
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + 1]
xor edx, edx
mov ebx, dword [esp + 0x14]
lea ecx, [ebx + 8]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x20]
movzx eax, byte [eax]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0x28]
or eax, ecx
mov edx, dword [esp + 0x2c]
or edx, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x20], 2
add dword [esp + 0x14], 0x10
mov eax, esi
and eax, 0x3ff
movsx ebx, word [ebp + eax*2 + 0xf04]
mov eax, ebx
test ebx, ebx
js 0x422149
sar ebx, 9
mov dword [esp + 0x28], ebx
mov ebx, eax
and ebx, 0x1ff
jmp 0x42217c
mov ecx, 0xa
lea eax, [ecx + 1]
mov dword [esp + 0x28], eax
mov eax, esi
mov edx, edi
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x422167
mov eax, edx
xor edx, edx
and eax, 1
sub eax, ebx
movsx ebx, word [ebp + eax*2 + 0x1702]
mov ecx, dword [esp + 0x28]
test ebx, ebx
js 0x42214e
mov cl, byte [esp + 0x28]
shrd esi, edi, cl
shr edi, cl
xor eax, eax
test cl, 0x20
cmovne esi, edi
cmovne edi, eax
mov edx, dword [esp + 0x28]
sub dword [esp + 0x14], edx
mov eax, dword [ebx*4 + 0x429fa0]
mov dword [esp + 0x28], eax
mov eax, dword [ebx*4 + 0x429f20]
mov dword [esp + 0x30], eax
cmp dword [esp + 0x28], 0
je 0x422265
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x14], ecx
jmp 0x422239
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x40]
cmp dword [esp + 0x20], ebx
jb 0x422202
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x1b
jmp 0x422677
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x28]
jb 0x4221d9
mov eax, 1
mov cl, byte [esp + 0x28]
shl eax, cl
dec eax
and eax, esi
shrd esi, edi, cl
shr edi, cl
xor edx, edx
test cl, 0x20
cmovne esi, edi
cmovne edi, edx
mov ecx, dword [esp + 0x28]
sub dword [esp + 0x14], ecx
add dword [esp + 0x30], eax
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x12c]
mov dword [esp + 0x48], eax
cmp dword [esp + 0x30], 0
sete dl
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x48]
seta al
or dl, al
je 0x4222ba
cmp dword [esp + 0x64], 0
je 0x4222ba
jmp 0x4222ae
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [ebp], 0x25
jmp 0x422674
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x30]
and eax, dword [esp + 0x50]
add eax, dword [esp + 0x12c]
mov edx, eax
cmp dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
cmovb eax, edx
add eax, dword [esp + 0x18]
cmp dword [esp + 0x4c], eax
jb 0x422342
jmp 0x42235b
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x4c]
cmp dword [esp + 0x24], ebx
jb 0x422312
mov dword [ebp], 0x35
jmp 0x421222
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x30]
and eax, dword [esp + 0x50]
mov edx, dword [esp + 0x12c]
mov al, byte [edx + eax]
mov ebx, dword [esp + 0x24]
mov byte [ebx], al
mov eax, dword [esp + 0x48]
inc eax
mov dword [esp + 0x48], eax
mov eax, ebx
inc eax
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x18], 0xffffffff
test ebx, ebx
je 0x421b31
lea eax, [ebx - 1]
mov dword [esp + 0x18], eax
jmp 0x4222fc
cmp dword [esp + 0x18], 8
jbe 0x4223dc
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x30], ecx
jb 0x4223dc
mov eax, ecx
and eax, 0xfffffff8
add eax, edx
mov dword [esp + 0x38], eax
mov dword [esp + 8], 8
mov dword [esp + 4], edx
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
add dword [esp + 0x24], 8
mov edx, dword [esp + 0x44]
add edx, 8
cmp dword [esp + 0x38], edx
ja 0x422377
and dword [esp + 0x18], 7
cmp dword [esp + 0x18], 2
ja 0x4223dc
cmp dword [esp + 0x18], 0
je 0x421b31
mov al, byte [edx]
mov ecx, dword [esp + 0x24]
mov byte [ecx], al
and bl, 6
je 0x4223cf
mov al, byte [edx + 1]
mov byte [ecx + 1], al
mov ebx, dword [esp + 0x18]
add dword [esp + 0x24], ebx
jmp 0x421b31
cmp dword [esp + 0x18], 2
jbe 0x422406
mov al, byte [edx]
mov ebx, dword [esp + 0x24]
mov byte [ebx], al
mov al, byte [edx + 1]
mov byte [ebx + 1], al
mov al, byte [edx + 2]
mov byte [ebx + 2], al
add dword [esp + 0x24], 3
add edx, 3
sub dword [esp + 0x18], 3
jmp 0x4223dc
cmp dword [esp + 0x18], 0
je 0x421b31
mov al, byte [edx]
mov ecx, dword [esp + 0x24]
mov byte [ecx], al
cmp dword [esp + 0x18], 2
jne 0x422426
mov al, byte [edx + 1]
mov byte [ecx + 1], al
mov edx, dword [esp + 0x18]
add dword [esp + 0x24], edx
jmp 0x421b31
test byte [ebp + 0x14], 1
je 0x420f0b
jmp 0x4224ad
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x40]
cmp dword [esp + 0x20], ebx
jb 0x42247e
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x20
jmp 0x422677
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
mov eax, dword [esp + 0x14]
and eax, 7
cmp eax, dword [esp + 0x14]
ja 0x422455
mov ecx, dword [esp + 0x14]
and ecx, 7
mov eax, esi
mov edx, edi
shrd eax, edi, cl
shr edx, cl
xor edi, edi
test cl, 0x20
cmovne eax, edx
cmovne edx, edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
and dword [esp + 0x14], 0xfffffff8
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x124]
jbe 0x422501
cmp dword [esp + 0x14], 7
jbe 0x422501
dec dword [esp + 0x20]
sub dword [esp + 0x14], 8
jmp 0x4224e2
mov cl, byte [esp + 0x14]
mov eax, 0xffffffff
mov edx, eax
shl eax, cl
xor esi, esi
test cl, 0x20
cmovne edx, eax
cmovne eax, esi
mov ecx, eax
not ecx
mov eax, edx
not eax
and ecx, dword [esp + 0x38]
mov esi, ecx
mov edx, dword [esp + 0x3c]
and edx, eax
mov edi, edx
test byte [esp + 0x138], 1
je 0x422653
mov dword [esp + 0x18], 0
cmp dword [esp + 0x14], 0
je 0x4225f0
jmp 0x4225c0
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x20], ecx
jb 0x422591
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x29
jmp 0x422677
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
cmp dword [esp + 0x14], 7
jbe 0x422568
mov eax, esi
movzx edx, al
shrd esi, edi, 8
shr edi, 8
sub dword [esp + 0x14], 8
jmp 0x422622
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x40]
cmp dword [esp + 0x20], ebx
jb 0x422616
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x2a
jmp 0x422677
mov eax, dword [esp + 0x20]
movzx edx, byte [eax]
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
shl eax, 8
or eax, edx
mov dword [ebp + 0x10], eax
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 3
ja 0x422653
jmp 0x422545
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [ebp], 0x22
xor ebx, ebx
jmp 0x422677
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
or ebx, 0xffffffff
cmp ebx, 1
je 0x4226a0
cmp ebx, 0xfffffffc
je 0x4226a0
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x124]
jbe 0x4226a0
cmp dword [esp + 0x14], 7
jbe 0x4226a0
dec dword [esp + 0x20]
sub dword [esp + 0x14], 8
jmp 0x422681
mov eax, dword [esp + 0x14]
mov dword [ebp + 4], eax
mov cl, byte [esp + 0x14]
mov eax, 0xffffffff
mov edx, eax
shl eax, cl
test cl, 0x20
je 0x4226bd
mov edx, eax
xor eax, eax
mov ecx, eax
not ecx
mov eax, edx
not eax
and ecx, esi
mov dword [ebp + 0x38], ecx
and eax, edi
mov dword [ebp + 0x3c], eax
mov eax, dword [esp + 0x30]
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x24], eax
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [ebp + 0x40], eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x124]
mov edi, dword [esp + 0x128]
mov dword [edi], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x130]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x134]
mov edi, dword [esp + 0x14]
mov dword [eax], edi
test byte [esp + 0x138], 9
je 0x42284e
test ebx, ebx
js 0x42284e
mov ecx, dword [ebp + 0x1c]
movzx edi, cx
shr ecx, 0x10
mov esi, 0x15b0
mov eax, dword [esp + 0x14]
xor edx, edx
div esi
mov esi, edx
cmp dword [esp + 0x14], 0
je 0x42282d
mov eax, dword [esp + 0x130]
mov edx, 7
sub edx, eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x20]
add edx, eax
cmp esi, edx
jbe 0x4227b4
movzx edx, byte [eax]
add edi, edx
movzx edx, byte [eax + 1]
add edx, edi
add edi, edx
add ecx, edi
movzx edi, byte [eax + 2]
add edx, edi
add ecx, edx
movzx edi, byte [eax + 3]
add edx, edi
add ecx, edx
movzx edi, byte [eax + 4]
add edx, edi
add ecx, edx
movzx edi, byte [eax + 5]
add edi, edx
add ecx, edi
movzx edx, byte [eax + 6]
add edx, edi
add ecx, edx
movzx edi, byte [eax + 7]
add edi, edx
add ecx, edi
add eax, 8
jmp 0x422766
mov edx, esi
and edx, 0x1ff8
mov eax, esi
and eax, 0xfffffff8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x130]
add eax, edx
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x130]
mov edx, dword [esp + 0x130]
add edx, eax
cmp esi, edx
jbe 0x422805
inc dword [esp + 0x130]
mov edx, dword [esp + 0x130]
movzx edx, byte [edx - 1]
add edi, edx
add ecx, edi
jmp 0x4227e0
mov eax, edi
mov edi, 0xfff1
xor edx, edx
div edi
mov edi, edx
mov eax, ecx
mov ecx, 0xfff1
xor edx, edx
div ecx
mov ecx, edx
sub dword [esp + 0x14], esi
mov esi, 0x15b0
jmp 0x422749
shl ecx, 0x10
add edi, ecx
mov dword [ebp + 0x1c], edi
test ebx, ebx
jne 0x42284e
test byte [esp + 0x138], 1
je 0x42284e
cmp edi, dword [ebp + 0x10]
mov eax, 0xfffffffe
cmovne ebx, eax
mov eax, ebx
add esp, 0x10c
pop ebx
pop esi
pop edi
pop ebp
ret