Function at 0x4060a0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x38
mov ecx, dword [esp + 0x40]
push ebx
push ebp
push esi
mov edx, ecx
push edi
mov edi, dword [esp + 0x4c]
xor eax, eax
shr ecx, 2
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x42bb00]
repne scasb al, byte es:[edi]
mov eax, dword [edx + 8]
not ecx
dec ecx
test eax, eax
mov ebp, ecx
je 0x406e9c
cmp eax, 2
jbe 0x407b00
cmp eax, 4
ja 0x407b00
cmp ebp, 0x10
jl 0x407b00
cmp ebp, 0x18
jg 0x407b00
mov ecx, dword [esp + 0x58]
mov edi, ebx
test ecx, ecx
je 0x40672c
xor ecx, ecx
cmp eax, 4
mov al, byte [edx + 0x53]
sete cl
mov esi, ecx
mov cx, word [edx + 0x1e]
mov byte [esp + 0x58], al
mov word [esp + 0x44], cx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x38], esi
mov edi, ecx
mov ecx, eax
mov dword [esp + 0x20], edi
je 0x406177
mov al, byte [eax + ebx]
cmp al, 0x30
jl 0x40618f
cmp al, 0x5a
jg 0x40618f
test esi, esi
je 0x406163
cmp al, 0x39
jg 0x40618f
jmp 0x40616b
cmp al, 0x38
jle 0x40616b
cmp al, 0x41
jl 0x40618f
inc ecx
mov eax, ecx
and eax, 0xffff
cmp eax, edi
jb 0x40614e
xor eax, eax
test esi, esi
setne al
lea eax, [eax*8 + 0xc]
mov ebp, eax
mov eax, dword [esp + 0x50]
cmp ebp, eax
jbe 0x40619c
xor eax, eax
mov ebp, eax
mov dword [esp + 0x14], ebp
jmp 0x406d31
mov edi, ebp
test esi, esi
mov dword [esp + 0x10], edi
jne 0x40620b
mov edi, dword [esp + 0x50]
xor eax, eax
test edi, edi
mov esi, ebx
mov ecx, 1
jbe 0x4061ea
mov dl, byte [esi]
inc esi
test dl, dl
je 0x4061e0
mov edx, 5
add ecx, ecx
cmp ecx, 0x100
jl 0x4061d3
inc eax
mov ecx, 1
dec edx
je 0x4061dc
cmp eax, edi
jb 0x4061c3
jmp 0x4061e0
cmp eax, edi
jb 0x4061b7
cmp ecx, 1
je 0x4061ea
cmp eax, edi
jae 0x4061ea
inc eax
mov edi, eax
cmp ebp, eax
mov dword [esp + 0x10], edi
jae 0x4061fa
mov edi, ebp
mov dword [esp + 0x10], edi
cmp edi, 0x29e
jbe 0x40620b
mov edi, 0x29e
mov dword [esp + 0x10], edi
mov esi, dword [esp + 0x20]
xor ecx, ecx
shr esi, 2
mov eax, ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x50], esi
je 0x406263
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
dec esi
jne 0x406220
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x20]
and edx, 3
mov dword [esp + 0x40], edx
jbe 0x406286
mov esi, ecx
xor ebx, ebx
mov bl, byte [eax]
shr esi, 0x1f
lea ecx, [esi + ecx*2]
add ecx, ebx
inc eax
dec edx
jne 0x406270
mov dword [esp + 0x2c], ecx
push 0x53c
call fcn.0041b3b5
mov esi, eax
push 0x29e
mov dword [esp + 0x24], esi
call fcn.0041b3b5
movzx bp, byte [esp + 0x60]
mov ecx, 1
add esp, 8
cmp di, cx
mov dword [esp + 0x14], eax
mov word [esi], 0
jbe 0x406308
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x44]
and ebx, 0xffff
mov esi, ecx
lea edi, [eax + 2]
mov edx, ebp
lea eax, [ebx + esi]
and edx, 0xffff
add edi, 2
xor eax, edx
cdq
idiv esi
mov eax, edx
and edx, 0xffff
xor eax, ecx
add ebp, eax
mov eax, dword [esp + 0x1c]
lea eax, [eax + edx*2]
mov dx, word [eax]
mov word [edi - 2], dx
mov word [eax], cx
inc ecx
inc esi
cmp cx, word [esp + 0x10]
jb 0x4062cf
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x50]
xor ebx, ebx
xor ebp, ebp
cmp esi, ebx
mov dword [esp + 0x18], ebp
lea eax, [eax + edi - 1]
jbe 0x406367
mov ecx, ebp
xor edx, edx
mov dl, byte [eax]
shr ecx, 0x1f
lea ecx, [ecx + ebp*2]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea ebp, [edx + ecx*2]
xor ecx, ecx
mov cl, byte [eax]
add ebp, ecx
dec eax
dec esi
jne 0x406324
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
jbe 0x406385
mov edx, ebp
shr edx, 0x1f
lea ebp, [edx + ebp*2]
xor edx, edx
mov dl, byte [eax]
add ebp, edx
dec eax
dec ecx
jne 0x40636f
mov dword [esp + 0x18], ebp
mov esi, dword [0x42bc0c]
mov dword [esp + 0x40], edi
xor edi, edi
mov dword [esp + 0x30], ebx
mov ecx, dword [esi*4 + 0x42b880]
mov dword [esp + 0x44], ebx
cmp ecx, ebx
mov eax, 1
mov dword [esp + 0x50], edi
je 0x40640a
mov dl, byte [ecx + 4]
sub dl, 0xe
mov byte [esp + 0x3c], dl
je 0x4063d2
mov edx, dword [esp + 0x3c]
and edx, 0xff
lea edi, [edx - 1]
cmp edi, esi
je 0x4063d2
cmp edx, dword [0x42bc08]
jle 0x406402
mov edx, dword [ecx]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x50]
lea ebx, [ecx + 5]
mov ecx, dword [0x42bb00]
mov dword [esp + 0x44], edx
mov dword [esp + 0x28], 5
mov edx, dword [ecx + 8]
test edx, edx
jne 0x40640a
mov dword [esp + 0x28], 8
jmp 0x40640a
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
test esi, esi
jbe 0x4065ee
mov ecx, dword [esp + 0x40]
mov dl, byte [ecx]
inc ecx
test dl, dl
mov byte [esp + 0x24], dl
mov dword [esp + 0x40], ecx
je 0x4065c3
mov ecx, dword [esp + 0x38]
test ecx, ecx
jne 0x40648c
cmp dl, 0x37
jne 0x40644d
mov dl, 0x49
mov dword [esp + 0x34], 5
add dl, 0xc5
mov byte [esp + 0x24], dl
jmp 0x4064a0
cmp dl, 0x38
jne 0x406465
mov dl, 0x4f
mov dword [esp + 0x34], 5
add dl, 0xc5
mov byte [esp + 0x24], dl
jmp 0x4064a0
cmp dl, 0x41
jb 0x40647b
add dl, 0xc5
mov dword [esp + 0x34], 5
mov byte [esp + 0x24], dl
jmp 0x4064a0
add dl, 0xcf
mov dword [esp + 0x34], 5
mov byte [esp + 0x24], dl
jmp 0x4064a0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], 1
and eax, 0xff
or ah, 1
mov ecx, 8
sub ecx, dword [esp + 0x54]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x38]
test ecx, ecx
jne 0x4064c4
add eax, eax
test dl, 1
je 0x4064be
or al, 1
shr dl, 1
mov byte [esp + 0x24], dl
cmp eax, 0x100
jl 0x406598
mov esi, dword [esp + 0x1c]
mov edx, edi
and edx, 0xffff
xor ecx, ecx
inc edi
mov cx, word [esi + edx*2]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x50], edi
mov byte [ecx + edx], al
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x44]
jae 0x40658b
test ebx, ebx
je 0x40658b
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx]
cmp eax, ecx
jne 0x40657f
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x2c]
cmp edx, eax
jne 0x40657f
cmp dword [ebx + 8], ebp
jne 0x40657f
mov ecx, dword [esp + 0x28]
xor eax, eax
test ecx, ecx
jle 0x406575
mov edi, dword [esp + 0x20]
sub edi, ecx
mov ecx, dword [esp + 0x3c]
lea ebp, [ebx + ecx + 4]
mov edx, dword [esp + 0x54]
mov cl, al
add cl, 0x55
lea esi, [eax + edx]
mov dl, byte [esi + ebp]
xor dl, cl
mov cl, byte [esi]
cmp dl, cl
jne 0x406569
mov dl, byte [eax + ebx + 0x14]
mov cl, al
add cl, 0x77
xor dl, cl
mov cl, byte [esi + edi]
cmp dl, cl
jne 0x406569
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
jl 0x406535
jmp 0x40656d
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x18]
cmp eax, ecx
jne 0x40657f
add edi, 0xffff
mov ecx, dword [esp + 0x30]
inc ecx
add ebx, 0x1c
mov dword [esp + 0x30], ecx
mov esi, dword [esp + 0x10]
mov dl, byte [esp + 0x24]
mov eax, 1
mov ecx, dword [esp + 0x34]
dec ecx
mov dword [esp + 0x34], ecx
je 0x4065b3
mov ecx, edi
and ecx, 0xffff
cmp ecx, esi
jb 0x4064ad
mov edx, edi
and edx, 0xffff
cmp edx, esi
jb 0x406416
cmp eax, 1
je 0x4065ee
mov ecx, edi
and ecx, 0xffff
cmp ecx, esi
jae 0x4065ee
add eax, eax
cmp eax, 0x100
jl 0x4065d4
mov edi, dword [esp + 0x1c]
xor edx, edx
mov dx, word [edi + ecx*2]
mov ecx, dword [esp + 0x14]
mov byte [edx + ecx], al
mov bl, byte [esp + 0x58]
xor edi, edi
cmp esi, edi
mov dword [esp + 0x50], edi
mov byte [esp + 0x54], bl
jbe 0x4066b2
xor ecx, ecx
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x40661c
mov eax, dword [esp + 0x14]
mov dl, byte [eax + ecx]
xor dl, bl
mov byte [eax + ecx], dl
jmp 0x406649
mov eax, dword [esp + 0x54]
mov esi, 0xa
and eax, 0xff
mov ebp, 0xa
cdq
idiv esi
mov esi, dword [esp + 0x14]
xor eax, eax
mov al, byte [esi + ecx]
sub eax, edx
sub eax, 0x26
cdq
idiv ebp
add dl, 0x30
mov byte [esi + ecx], dl
add bl, dl
xor ebp, ebp
test ecx, ecx
mov byte [esp + 0x54], bl
jbe 0x40668a
mov eax, 1
cmp ecx, eax
jbe 0x406681
mov esi, dword [esp + 0x14]
xor edx, edx
mov dl, byte [esi + ebp]
mov esi, edx
mov ebx, dword [esp + 0x14]
xor edx, edx
mov dl, byte [eax + ebx]
mov ebx, esi
shr edx, 1
shr ebx, 1
xor edx, ebx
add edi, edx
inc eax
cmp eax, ecx
jb 0x406669
inc ebp
cmp ebp, ecx
jb 0x406655
mov bl, byte [esp + 0x54]
mov eax, dword [esp + 0x14]
mov dl, byte [eax + ecx]
xor dl, 0x6a
mov byte [eax + ecx], dl
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x50], ecx
and ecx, 0xffff
cmp ecx, eax
jb 0x406606
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
xor edx, edx
test eax, eax
jbe 0x4066f0
mov esi, dword [esp + 0x4c]
xor ecx, ecx
xor eax, eax
mov ax, word [ebx + ecx*2]
mov al, byte [eax + ebp]
xor al, dl
mov byte [ecx + esi], al
and eax, 0xff
add edi, eax
mov eax, dword [esp + 0x10]
inc edx
mov ecx, edx
and ecx, 0xffff
cmp ecx, eax
jb 0x4066ca
cmp dword [0x42b754], edi
je 0x406708
mov dword [0x42b754], edi
mov dword [0x42b750], 1
push ebp
call fcn.0041b3aa
push ebx
call fcn.0041b3aa
mov eax, dword [esp + 0x18]
mov edx, dword [0x42bb00]
mov ebp, eax
add esp, 8
mov dword [esp + 0x14], ebp
jmp 0x406d31
xor ecx, ecx
cmp eax, 4
mov al, byte [edx + 0x54]
sete cl
mov esi, ecx
mov cx, word [edx + 0x34]
mov byte [esp + 0x58], al
mov word [esp + 0x44], cx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x2c], esi
mov edi, ecx
mov ecx, eax
mov dword [esp + 0x24], edi
je 0x406787
mov al, byte [eax + ebx]
cmp al, 0x30
jl 0x40679f
cmp al, 0x5a
jg 0x40679f
test esi, esi
je 0x406773
cmp al, 0x39
jg 0x40679f
jmp 0x40677b
cmp al, 0x38
jle 0x40677b
cmp al, 0x41
jl 0x40679f
inc ecx
mov eax, ecx
and eax, 0xffff
cmp eax, edi
jb 0x40675e
xor eax, eax
test esi, esi
setne al
lea eax, [eax*8 + 0xc]
mov ebp, eax
mov eax, dword [esp + 0x50]
cmp ebp, eax
jbe 0x4067a6
xor eax, eax
jmp 0x406d2b
mov edi, ebp
test esi, esi
mov dword [esp + 0x10], edi
jne 0x406815
mov edi, dword [esp + 0x50]
xor eax, eax
test edi, edi
mov esi, ebx
mov ecx, 1
jbe 0x4067f4
mov dl, byte [esi]
inc esi
test dl, dl
je 0x4067ea
mov edx, 5
add ecx, ecx
cmp ecx, 0x100
jl 0x4067dd
inc eax
mov ecx, 1
dec edx
je 0x4067e6
cmp eax, edi
jb 0x4067cd
jmp 0x4067ea
cmp eax, edi
jb 0x4067c1
cmp ecx, 1
je 0x4067f4
cmp eax, edi
jae 0x4067f4
inc eax
mov edi, eax
cmp ebp, eax
mov dword [esp + 0x10], edi
jae 0x406804
mov edi, ebp
mov dword [esp + 0x10], edi
cmp edi, 0x29e
jbe 0x406815
mov edi, 0x29e
mov dword [esp + 0x10], edi
mov esi, dword [esp + 0x24]
xor ecx, ecx
shr esi, 2
mov eax, ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x50], esi
je 0x40686d
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
dec esi
jne 0x40682a
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x24]
and edx, 3
mov dword [esp + 0x40], edx
jbe 0x406890
mov esi, ecx
xor ebx, ebx
mov bl, byte [eax]
shr esi, 0x1f
lea ecx, [esi + ecx*2]
add ecx, ebx
inc eax
dec edx
jne 0x40687a
mov dword [esp + 0x38], ecx
push 0x53c
call fcn.0041b3b5
mov esi, eax
push 0x29e
mov dword [esp + 0x24], esi
call fcn.0041b3b5
movzx bp, byte [esp + 0x60]
mov ecx, 1
add esp, 8
cmp di, cx
mov dword [esp + 0x14], eax
mov word [esi], 0
jbe 0x406912
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x44]
and ebx, 0xffff
mov esi, ecx
lea edi, [eax + 2]
mov edx, ebp
lea eax, [ebx + esi]
and edx, 0xffff
add edi, 2
xor eax, edx
cdq
idiv esi
mov eax, edx
and edx, 0xffff
xor eax, ecx
add ebp, eax
mov eax, dword [esp + 0x1c]
lea eax, [eax + edx*2]
mov dx, word [eax]
mov word [edi - 2], dx
mov word [eax], cx
inc ecx
inc esi
cmp cx, word [esp + 0x10]
jb 0x4068d9
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x50]
xor ebx, ebx
xor ebp, ebp
cmp esi, ebx
mov dword [esp + 0x18], ebp
lea eax, [eax + edi - 1]
jbe 0x406971
mov ecx, ebp
xor edx, edx
mov dl, byte [eax]
shr ecx, 0x1f
lea ecx, [ecx + ebp*2]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea ebp, [edx + ecx*2]
xor ecx, ecx
mov cl, byte [eax]
add ebp, ecx
dec eax
dec esi
jne 0x40692e
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
jbe 0x40698f
mov edx, ebp
shr edx, 0x1f
lea ebp, [edx + ebp*2]
xor edx, edx
mov dl, byte [eax]
add ebp, edx
dec eax
dec ecx
jne 0x406979
mov dword [esp + 0x18], ebp
mov esi, dword [0x42bc0c]
mov dword [esp + 0x44], edi
xor edi, edi
mov dword [esp + 0x34], ebx
mov ecx, dword [esi*4 + 0x42b880]
mov dword [esp + 0x40], ebx
cmp ecx, ebx
mov eax, 1
mov dword [esp + 0x50], edi
je 0x406a14
mov dl, byte [ecx + 4]
sub dl, 0xe
mov byte [esp + 0x3c], dl
je 0x4069dc
mov edx, dword [esp + 0x3c]
and edx, 0xff
lea edi, [edx - 1]
cmp edi, esi
je 0x4069dc
cmp edx, dword [0x42bc08]
jle 0x406a0c
mov edx, dword [ecx]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x50]
lea ebx, [ecx + 5]
mov ecx, dword [0x42bb00]
mov dword [esp + 0x40], edx
mov dword [esp + 0x28], 5
mov edx, dword [ecx + 8]
test edx, edx
jne 0x406a14
mov dword [esp + 0x28], 8
jmp 0x406a14
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
test esi, esi
jbe 0x406bf8
mov ecx, dword [esp + 0x44]
mov dl, byte [ecx]
inc ecx
test dl, dl
mov byte [esp + 0x20], dl
mov dword [esp + 0x44], ecx
je 0x406bcd
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x406a96
cmp dl, 0x37
jne 0x406a57
mov dl, 0x49
mov dword [esp + 0x30], 5
add dl, 0xc5
mov byte [esp + 0x20], dl
jmp 0x406aaa
cmp dl, 0x38
jne 0x406a6f
mov dl, 0x4f
mov dword [esp + 0x30], 5
add dl, 0xc5
mov byte [esp + 0x20], dl
jmp 0x406aaa
cmp dl, 0x41
jb 0x406a85
add dl, 0xc5
mov dword [esp + 0x30], 5
mov byte [esp + 0x20], dl
jmp 0x406aaa
add dl, 0xcf
mov dword [esp + 0x30], 5
mov byte [esp + 0x20], dl
jmp 0x406aaa
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], 1
and eax, 0xff
or ah, 1
mov ecx, 8
sub ecx, dword [esp + 0x54]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x406ace
add eax, eax
test dl, 1
je 0x406ac8
or al, 1
shr dl, 1
mov byte [esp + 0x20], dl
cmp eax, 0x100
jl 0x406ba2
mov esi, dword [esp + 0x1c]
mov edx, edi
and edx, 0xffff
xor ecx, ecx
inc edi
mov cx, word [esi + edx*2]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x50], edi
mov byte [ecx + edx], al
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x40]
jae 0x406b95
test ebx, ebx
je 0x406b95
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx]
cmp eax, ecx
jne 0x406b89
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x38]
cmp edx, eax
jne 0x406b89
cmp dword [ebx + 8], ebp
jne 0x406b89
mov ecx, dword [esp + 0x28]
xor eax, eax
test ecx, ecx
jle 0x406b7f
mov edi, dword [esp + 0x24]
sub edi, ecx
mov ecx, dword [esp + 0x3c]
lea ebp, [ebx + ecx + 4]
mov edx, dword [esp + 0x54]
mov cl, al
add cl, 0x55
lea esi, [eax + edx]
mov dl, byte [esi + ebp]
xor dl, cl
mov cl, byte [esi]
cmp dl, cl
jne 0x406b73
mov dl, byte [eax + ebx + 0x14]
mov cl, al
add cl, 0x77
xor dl, cl
mov cl, byte [esi + edi]
cmp dl, cl
jne 0x406b73
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
jl 0x406b3f
jmp 0x406b77
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x18]
cmp eax, ecx
jne 0x406b89
add edi, 0xffff
mov ecx, dword [esp + 0x34]
inc ecx
add ebx, 0x1c
mov dword [esp + 0x34], ecx
mov esi, dword [esp + 0x10]
mov dl, byte [esp + 0x20]
mov eax, 1
mov ecx, dword [esp + 0x30]
dec ecx
mov dword [esp + 0x30], ecx
je 0x406bbd
mov ecx, edi
and ecx, 0xffff
cmp ecx, esi
jb 0x406ab7
mov edx, edi
and edx, 0xffff
cmp edx, esi
jb 0x406a20
cmp eax, 1
je 0x406bf8
mov ecx, edi
and ecx, 0xffff
cmp ecx, esi
jae 0x406bf8
add eax, eax
cmp eax, 0x100
jl 0x406bde
mov edi, dword [esp + 0x1c]
xor edx, edx
mov dx, word [edi + ecx*2]
mov ecx, dword [esp + 0x14]
mov byte [edx + ecx], al
mov bl, byte [esp + 0x58]
xor edi, edi
cmp esi, edi
mov dword [esp + 0x50], edi
mov byte [esp + 0x54], bl
jbe 0x406cbc
xor ecx, ecx
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x406c26
mov eax, dword [esp + 0x14]
mov dl, byte [eax + ecx]
xor dl, bl
mov byte [eax + ecx], dl
jmp 0x406c53
mov eax, dword [esp + 0x54]
mov esi, 0xa
and eax, 0xff
mov ebp, 0xa
cdq
idiv esi
mov esi, dword [esp + 0x14]
xor eax, eax
mov al, byte [esi + ecx]
sub eax, edx
sub eax, 0x26
cdq
idiv ebp
add dl, 0x30
mov byte [esi + ecx], dl
add bl, dl
xor ebp, ebp
test ecx, ecx
mov byte [esp + 0x54], bl
jbe 0x406c94
mov eax, 1
cmp ecx, eax
jbe 0x406c8b
mov esi, dword [esp + 0x14]
xor edx, edx
mov dl, byte [esi + ebp]
mov esi, edx
mov ebx, dword [esp + 0x14]
xor edx, edx
mov dl, byte [eax + ebx]
mov ebx, esi
shr edx, 1
shr ebx, 1
xor edx, ebx
add edi, edx
inc eax
cmp eax, ecx
jb 0x406c73
inc ebp
cmp ebp, ecx
jb 0x406c5f
mov bl, byte [esp + 0x54]
mov eax, dword [esp + 0x14]
mov dl, byte [eax + ecx]
xor dl, 0x6a
mov byte [eax + ecx], dl
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x50], ecx
and ecx, 0xffff
cmp ecx, eax
jb 0x406c10
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
xor edx, edx
test eax, eax
jbe 0x406cfa
mov esi, dword [esp + 0x4c]
xor ecx, ecx
xor eax, eax
mov ax, word [ebx + ecx*2]
mov al, byte [eax + ebp]
xor al, dl
mov byte [ecx + esi], al
and eax, 0xff
add edi, eax
mov eax, dword [esp + 0x10]
inc edx
mov ecx, edx
and ecx, 0xffff
cmp ecx, eax
jb 0x406cd4
cmp dword [0x42b754], edi
je 0x406d12
mov dword [0x42b754], edi
mov dword [0x42b750], 1
push ebp
call fcn.0041b3aa
push ebx
call fcn.0041b3aa
mov eax, dword [esp + 0x18]
mov edx, dword [0x42bb00]
add esp, 8
mov dword [esp + 0x14], eax
mov ebp, eax
cmp dword [edx + 8], 3
jne 0x406daf
lea esi, [ebp - 1]
xor cl, cl
xor eax, eax
test esi, esi
jle 0x406d5e
mov edx, dword [esp + 0x4c]
mov bl, cl
shr bl, 7
mov dl, byte [eax + edx]
add cl, cl
xor dl, al
xor dl, 0x6a
add dl, bl
add cl, dl
inc eax
cmp eax, esi
jl 0x406d42
mov esi, dword [esp + 0x4c]
mov dl, byte [esi + ebp - 1]
xor dl, al
xor dl, 0x6a
cmp dl, cl
je 0x406d83
pop edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
xor eax, eax
xor ecx, ecx
add esi, 5
mov bl, cl
xor edx, edx
mov dl, byte [esi + ecx]
add bl, 5
and ebx, 0xff
xor edx, ebx
xor edx, 0x6a
shl eax, 5
add eax, edx
inc ecx
cmp ecx, 6
jl 0x406d8a
jmp 0x406e47
mov edi, dword [esp + 0x4c]
xor esi, esi
xor eax, eax
mov dl, al
xor ecx, ecx
mov cl, byte [edi + eax + 0xd]
add dl, 0xd
and edx, 0xff
xor ecx, edx
lea edx, [esi + esi*4]
xor ecx, 0x6a
inc eax
cmp eax, 7
lea esi, [ecx + edx*2 - 0x30]
jl 0x406db7
xor ecx, ecx
xor eax, eax
xor edx, edx
mov ebx, eax
mov dl, byte [eax + edi]
and ebx, 0xff
xor edx, ebx
mov ebx, ecx
xor edx, 0x6a
shr ebx, 0x1f
add edx, ebx
inc eax
cmp eax, 0xd
lea ecx, [edx + ecx*2]
jl 0x406dde
and ecx, 0x7fffff
cmp esi, ecx
je 0x406e1e
pop edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
xor eax, eax
xor ecx, ecx
lea esi, [edi + 5]
mov bl, cl
xor edx, edx
mov dl, byte [esi + ecx]
add bl, 5
and ebx, 0xff
lea eax, [eax + eax*4]
xor edx, ebx
xor edx, 0x6a
inc ecx
cmp ecx, 8
lea eax, [edx + eax*2 - 0x30]
jl 0x406e25
xor dl, dl
xor ecx, ecx
mov byte [esp + 0x50], dl
mov edi, dword [esp + 0x4c]
shr dl, 7
mov bl, byte [ecx + edi]
xor bl, cl
xor bl, 0x6a
add bl, dl
mov dl, byte [esp + 0x50]
add dl, dl
add dl, bl
inc ecx
cmp ecx, 5
mov byte [esp + 0x50], dl
jl 0x406e4f
mov ecx, dword [0x42bb00]
cmp dl, byte [ecx + 0x1d]
je 0x406e91
pop edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov dword [0x42b7c0], esi
jmp 0x407abe
cmp ebp, 8
jl 0x407b00
lea edx, [ebp - 7]
push edx
call fcn.0041af50
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x407b00
mov eax, dword [esp + 0x54]
lea ecx, [ebp - 8]
mov edx, ecx
mov edi, ebx
lea esi, [eax + 3]
mov eax, dword [esp + 0x58]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp - 8], 0
mov edi, ebx
test eax, eax
mov eax, dword [0x42bb00]
mov bp, word [eax]
je 0x4074c3
mov cl, byte [eax + 0x53]
mov dx, word [eax + 0x1e]
shr ebp, 0xb
mov byte [esp + 0x54], cl
or ecx, 0xffffffff
xor eax, eax
and ebp, 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov word [esp + 0x44], dx
mov edx, ecx
mov ecx, eax
mov dword [esp + 0x28], edx
je 0x406f3d
mov al, byte [eax + ebx]
cmp al, 0x30
jl 0x406f60
cmp al, 0x5a
jg 0x406f60
cmp al, 0x38
jle 0x406f31
cmp al, 0x41
jl 0x406f60
inc ecx
mov eax, ecx
and eax, 0xffff
cmp eax, edx
jb 0x406f1e
movsx eax, byte [ebx + 1]
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
movsx eax, byte [ebx]
lea ecx, [eax + edx*2 - 0x6db]
mov edx, dword [esp + 0x50]
cmp ecx, edx
mov dword [esp + 0x40], ecx
lea eax, [ebx + 2]
jbe 0x406f67
xor eax, eax
jmp 0x407aa9
mov esi, eax
xor eax, eax
test edx, edx
mov ecx, 1
jbe 0x406fab
mov edi, dword [esp + 0x50]
mov dl, byte [esi]
inc esi
test dl, dl
je 0x406fa1
mov edx, 5
add ecx, ecx
cmp ecx, 0x100
jl 0x406f94
inc eax
mov ecx, 1
dec edx
je 0x406f9d
cmp eax, edi
jb 0x406f84
jmp 0x406fa1
cmp eax, edi
jb 0x406f78
cmp ecx, 1
je 0x406fab
cmp eax, edi
jae 0x406fab
inc eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x58], eax
cmp ecx, eax
jae 0x406fbb
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x58]
mov eax, 0x29e
cmp ecx, eax
jbe 0x406fcc
mov dword [esp + 0x58], eax
mov edi, dword [esp + 0x28]
xor edx, edx
mov esi, edi
mov eax, ebx
shr esi, 2
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], esi
je 0x407026
mov ecx, edx
shr ecx, 0x1f
lea ecx, [ecx + edx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea edx, [edx + ecx*2]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
inc eax
dec esi
jne 0x406fe3
mov dword [esp + 0x3c], edx
mov ecx, edi
and ecx, 3
mov dword [esp + 0x34], ecx
jbe 0x407047
mov esi, edx
xor ebx, ebx
mov bl, byte [eax]
shr esi, 0x1f
lea edx, [esi + edx*2]
add edx, ebx
inc eax
dec ecx
jne 0x407031
mov dword [esp + 0x3c], edx
push 0x53c
call fcn.0041b3b5
mov ebx, eax
push 0x29e
mov dword [esp + 0x24], ebx
call fcn.0041b3b5
add esp, 8
mov dword [esp + 0x18], eax
test ebp, ebp
mov word [ebx], 0
jne 0x4070d5
movzx bp, byte [esp + 0x54]
mov ecx, 1
cmp word [esp + 0x58], cx
jbe 0x407145
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x44]
and ebx, 0xffff
mov esi, ecx
lea edi, [edx + 2]
mov edx, ebp
lea eax, [ebx + esi]
and edx, 0xffff
add edi, 2
xor eax, edx
cdq
idiv esi
mov eax, edx
and edx, 0xffff
xor eax, ecx
add ebp, eax
mov eax, dword [esp + 0x1c]
lea eax, [eax + edx*2]
mov dx, word [eax]
mov word [edi - 2], dx
mov word [eax], cx
inc ecx
inc esi
cmp cx, word [esp + 0x58]
jb 0x40709a
jmp 0x407145
mov al, byte [esp + 0x54]
mov cl, 1
mov byte [esp + 0x50], al
mov al, byte [esp + 0x58]
cmp al, cl
jbe 0x407145
mov ebp, dword [esp + 0x44]
mov esi, 1
and ebp, 0xff
lea edi, [ebx + 2]
mov edx, dword [esp + 0x50]
lea eax, [esi + ebp]
and edx, 0xff
add edi, 2
xor eax, edx
cdq
idiv esi
mov al, byte [esp + 0x50]
mov byte [esp + 0x44], dl
xor dl, cl
add al, dl
mov byte [esp + 0x50], al
mov eax, dword [esp + 0x44]
and eax, 0xff
mov dx, word [ebx + eax*2]
lea eax, [ebx + eax*2]
mov word [edi - 2], dx
xor dx, dx
mov dl, cl
inc cl
mov word [eax], dx
mov al, byte [esp + 0x58]
inc esi
cmp cl, al
jb 0x4070f9
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x40]
xor edx, edx
test esi, esi
mov dword [esp + 0x38], edx
lea eax, [eax + ecx - 1]
jbe 0x4071a2
mov ecx, edx
shr ecx, 0x1f
lea ecx, [ecx + edx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea edx, [edx + ecx*2]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
dec eax
dec esi
jne 0x40715f
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x34]
test ecx, ecx
jbe 0x4071c0
mov esi, edx
xor ebx, ebx
mov bl, byte [eax]
shr esi, 0x1f
lea edx, [esi + edx*2]
add edx, ebx
dec eax
dec ecx
jne 0x4071aa
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x10]
mov esi, dword [0x42bc0c]
xor edi, edi
xor ebx, ebx
mov ecx, dword [esi*4 + 0x42b880]
lea eax, [edx + 2]
mov dword [esp + 0x44], eax
cmp ecx, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], edi
mov eax, 1
mov dword [esp + 0x14], edi
je 0x407246
mov dl, byte [ecx + 4]
sub dl, 0xe
mov byte [esp + 0x50], dl
je 0x407216
mov edx, dword [esp + 0x50]
and edx, 0xff
lea edi, [edx - 1]
cmp edi, esi
je 0x407216
cmp edx, dword [0x42bc08]
jle 0x407242
mov edx, dword [ecx]
mov edi, dword [esp + 0x14]
lea ebx, [ecx + 5]
mov ecx, dword [0x42bb00]
mov dword [esp + 0x40], edx
mov dword [esp + 0x24], 5
mov edx, dword [ecx + 8]
test edx, edx
jne 0x407246
mov dword [esp + 0x24], 8
jmp 0x407246
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x58]
test esi, esi
jbe 0x4073e1
mov edx, dword [esp + 0x44]
mov cl, byte [edx]
inc edx
test cl, cl
mov dword [esp + 0x44], edx
je 0x4073b2
cmp cl, 0x37
jne 0x407271
mov cl, 0x49
add cl, 0xc5
jmp 0x40728a
cmp cl, 0x38
jne 0x40727d
mov cl, 0x4f
add cl, 0xc5
jmp 0x40728a
cmp cl, 0x41
jb 0x407287
add cl, 0xc5
jmp 0x40728a
add cl, 0xcf
mov ebp, dword [esp + 0x10]
mov edx, 8
sub edx, ebp
mov dword [esp + 0x2c], 5
mov dword [esp + 0x30], edx
add eax, eax
test cl, 1
je 0x4072aa
or al, 1
shr cl, 1
cmp eax, 0x100
mov byte [esp + 0x50], cl
jl 0x407387
mov ebp, dword [esp + 0x1c]
mov edx, edi
and edx, 0xffff
xor esi, esi
inc edi
mov si, word [ebp + edx*2]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edi
mov byte [esi + edx], al
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x40]
jae 0x40737e
test ebx, ebx
je 0x40737e
mov edx, dword [ebx]
mov eax, dword [esp + 0x28]
cmp edx, eax
jne 0x407372
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x3c]
cmp eax, edx
jne 0x407372
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x38]
cmp edx, eax
jne 0x407372
mov edx, dword [esp + 0x24]
xor eax, eax
test edx, edx
jle 0x407368
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
sub edi, edx
lea ebp, [ecx + ebx + 4]
mov edx, dword [esp + 0x10]
mov cl, al
add cl, 0x55
lea esi, [eax + edx]
mov dl, byte [esi + ebp]
xor dl, cl
mov cl, byte [esi]
cmp dl, cl
jne 0x40735c
mov dl, byte [eax + ebx + 0x14]
mov cl, al
add cl, 0x77
xor dl, cl
mov cl, byte [edi + esi]
cmp dl, cl
jne 0x40735c
mov edx, dword [esp + 0x24]
inc eax
cmp eax, edx
jl 0x407328
jmp 0x407360
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov cl, byte [esp + 0x50]
cmp eax, edx
jne 0x407372
add edi, 0xffff
mov edx, dword [esp + 0x34]
inc edx
add ebx, 0x1c
mov dword [esp + 0x34], edx
mov esi, dword [esp + 0x58]
mov eax, 1
mov edx, dword [esp + 0x2c]
dec edx
mov dword [esp + 0x2c], edx
je 0x4073a2
mov edx, edi
and edx, 0xffff
cmp edx, esi
jb 0x4072a1
mov ecx, edi
and ecx, 0xffff
cmp ecx, esi
jb 0x407252
cmp eax, 1
je 0x4073e1
mov edx, dword [esp + 0x58]
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jae 0x4073e1
add eax, eax
cmp eax, 0x100
jl 0x4073c7
mov esi, dword [esp + 0x1c]
xor edx, edx
mov dx, word [esi + ecx*2]
mov ecx, dword [esp + 0x18]
mov byte [edx + ecx], al
mov ecx, dword [esp + 0x58]
mov dl, byte [esp + 0x54]
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x14], edi
jbe 0x407465
xor eax, eax
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov bl, byte [eax + ecx]
xor bl, dl
add dl, bl
mov byte [eax + ecx], bl
test eax, eax
mov byte [esp + 0x50], dl
jbe 0x407442
mov ecx, 1
cmp eax, ecx
jbe 0x40743d
mov esi, dword [esp + 0x18]
xor edx, edx
mov dl, byte [esi + ebp]
mov esi, edx
mov ebx, dword [esp + 0x18]
xor edx, edx
mov dl, byte [ecx + ebx]
mov ebx, esi
shr edx, 1
shr ebx, 1
xor edx, ebx
add edi, edx
inc ecx
cmp ecx, eax
jb 0x407421
mov dl, byte [esp + 0x50]
inc ebp
cmp ebp, eax
jb 0x40740d
mov ecx, dword [esp + 0x18]
mov bl, byte [eax + ecx]
xor bl, 0x6a
mov byte [eax + ecx], bl
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
inc eax
mov dword [esp + 0x14], eax
and eax, 0xffff
cmp eax, ecx
jb 0x4073f5
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
xor edx, edx
test ecx, ecx
jbe 0x40749f
mov esi, dword [esp + 0x4c]
xor ecx, ecx
xor eax, eax
mov ax, word [ebx + ecx*2]
mov al, byte [eax + ebp]
xor al, dl
mov byte [ecx + esi], al
and eax, 0xff
add edi, eax
mov eax, dword [esp + 0x58]
inc edx
mov ecx, edx
and ecx, 0xffff
cmp ecx, eax
jb 0x407479
cmp dword [0x42b754], edi
je 0x4074b7
mov dword [0x42b754], edi
mov dword [0x42b750], 1
push ebp
call fcn.0041b3aa
push ebx
jmp 0x407a99
mov cl, byte [eax + 0x54]
mov dx, word [eax + 0x34]
shr ebp, 0xb
mov byte [esp + 0x54], cl
or ecx, 0xffffffff
xor eax, eax
and ebp, 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov word [esp + 0x44], dx
mov edx, ecx
mov ecx, eax
mov dword [esp + 0x28], edx
je 0x407518
mov al, byte [eax + ebx]
cmp al, 0x30
jl 0x406f60
cmp al, 0x5a
jg 0x406f60
cmp al, 0x38
jle 0x40750c
cmp al, 0x41
jl 0x406f60
inc ecx
mov eax, ecx
and eax, 0xffff
cmp eax, edx
jb 0x4074ed
movsx eax, byte [ebx + 1]
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
movsx eax, byte [ebx]
lea ecx, [eax + edx*2 - 0x6db]
mov edx, dword [esp + 0x50]
cmp ecx, edx
mov dword [esp + 0x40], ecx
lea eax, [ebx + 2]
jbe 0x407542
xor eax, eax
jmp 0x407aa9
mov esi, eax
xor eax, eax
test edx, edx
mov ecx, 1
jbe 0x407586
mov edi, dword [esp + 0x50]
mov dl, byte [esi]
inc esi
test dl, dl
je 0x40757c
mov edx, 5
add ecx, ecx
cmp ecx, 0x100
jl 0x40756f
inc eax
mov ecx, 1
dec edx
je 0x407578
cmp eax, edi
jb 0x40755f
jmp 0x40757c
cmp eax, edi
jb 0x407553
cmp ecx, 1
je 0x407586
cmp eax, edi
jae 0x407586
inc eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x58], eax
cmp ecx, eax
jae 0x407596
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x58]
mov eax, 0x29e
cmp ecx, eax
jbe 0x4075a7
mov dword [esp + 0x58], eax
mov edi, dword [esp + 0x28]
xor edx, edx
mov esi, edi
mov eax, ebx
shr esi, 2
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], esi
je 0x407601
mov ecx, edx
shr ecx, 0x1f
lea ecx, [ecx + edx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea edx, [edx + ecx*2]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
inc eax
dec esi
jne 0x4075be
mov dword [esp + 0x3c], edx
mov ecx, edi
and ecx, 3
mov dword [esp + 0x34], ecx
jbe 0x407622
mov esi, edx
xor ebx, ebx
mov bl, byte [eax]
shr esi, 0x1f
lea edx, [esi + edx*2]
add edx, ebx
inc eax
dec ecx
jne 0x40760c
mov dword [esp + 0x3c], edx
push 0x53c
call fcn.0041b3b5
mov ebx, eax
push 0x29e
mov dword [esp + 0x24], ebx
call fcn.0041b3b5
add esp, 8
mov dword [esp + 0x18], eax
test ebp, ebp
mov word [ebx], 0
jne 0x4076b0
movzx bp, byte [esp + 0x54]
mov ecx, 1
cmp word [esp + 0x58], cx
jbe 0x407720
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x44]
and ebx, 0xffff
mov esi, ecx
lea edi, [edx + 2]
mov edx, ebp
lea eax, [ebx + esi]
and edx, 0xffff
add edi, 2
xor eax, edx
cdq
idiv esi
mov eax, edx
and edx, 0xffff
xor eax, ecx
add ebp, eax
mov eax, dword [esp + 0x1c]
lea eax, [eax + edx*2]
mov dx, word [eax]
mov word [edi - 2], dx
mov word [eax], cx
inc ecx
inc esi
cmp cx, word [esp + 0x58]
jb 0x407675
jmp 0x407720
mov al, byte [esp + 0x54]
mov cl, 1
mov byte [esp + 0x50], al
mov al, byte [esp + 0x58]
cmp al, cl
jbe 0x407720
mov ebp, dword [esp + 0x44]
mov esi, 1
and ebp, 0xff
lea edi, [ebx + 2]
mov edx, dword [esp + 0x50]
lea eax, [esi + ebp]
and edx, 0xff
add edi, 2
xor eax, edx
cdq
idiv esi
mov al, byte [esp + 0x50]
mov byte [esp + 0x44], dl
xor dl, cl
add al, dl
mov byte [esp + 0x50], al
mov eax, dword [esp + 0x44]
and eax, 0xff
mov dx, word [ebx + eax*2]
lea eax, [ebx + eax*2]
mov word [edi - 2], dx
xor dx, dx
mov dl, cl
inc cl
mov word [eax], dx
mov al, byte [esp + 0x58]
inc esi
cmp cl, al
jb 0x4076d4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x40]
xor edx, edx
test esi, esi
mov dword [esp + 0x38], edx
lea eax, [eax + ecx - 1]
jbe 0x40777d
mov ecx, edx
shr ecx, 0x1f
lea ecx, [ecx + edx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea edx, [edx + ecx*2]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
dec eax
dec esi
jne 0x40773a
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x34]
test ecx, ecx
jbe 0x40779b
mov esi, edx
xor ebx, ebx
mov bl, byte [eax]
shr esi, 0x1f
lea edx, [esi + edx*2]
add edx, ebx
dec eax
dec ecx
jne 0x407785
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x10]
mov esi, dword [0x42bc0c]
xor edi, edi
xor ebx, ebx
mov ecx, dword [esi*4 + 0x42b880]
lea eax, [edx + 2]
mov dword [esp + 0x44], eax
cmp ecx, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], edi
mov eax, 1
mov dword [esp + 0x14], edi
je 0x407821
mov dl, byte [ecx + 4]
sub dl, 0xe
mov byte [esp + 0x50], dl
je 0x4077f1
mov edx, dword [esp + 0x50]
and edx, 0xff
lea edi, [edx - 1]
cmp edi, esi
je 0x4077f1
cmp edx, dword [0x42bc08]
jle 0x40781d
mov edx, dword [ecx]
mov edi, dword [esp + 0x14]
lea ebx, [ecx + 5]
mov ecx, dword [0x42bb00]
mov dword [esp + 0x40], edx
mov dword [esp + 0x24], 5
mov edx, dword [ecx + 8]
test edx, edx
jne 0x407821
mov dword [esp + 0x24], 8
jmp 0x407821
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x58]
test esi, esi
jbe 0x4079bc
mov edx, dword [esp + 0x44]
mov cl, byte [edx]
inc edx
test cl, cl
mov dword [esp + 0x44], edx
je 0x40798d
cmp cl, 0x37
jne 0x40784c
mov cl, 0x49
add cl, 0xc5
jmp 0x407865
cmp cl, 0x38
jne 0x407858
mov cl, 0x4f
add cl, 0xc5
jmp 0x407865
cmp cl, 0x41
jb 0x407862
add cl, 0xc5
jmp 0x407865
add cl, 0xcf
mov ebp, dword [esp + 0x10]
mov edx, 8
sub edx, ebp
mov dword [esp + 0x2c], 5
mov dword [esp + 0x30], edx
add eax, eax
test cl, 1
je 0x407885
or al, 1
shr cl, 1
cmp eax, 0x100
mov byte [esp + 0x50], cl
jl 0x407962
mov ebp, dword [esp + 0x1c]
mov edx, edi
and edx, 0xffff
xor esi, esi
inc edi
mov si, word [ebp + edx*2]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edi
mov byte [esi + edx], al
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x40]
jae 0x407959
test ebx, ebx
je 0x407959
mov edx, dword [ebx]
mov eax, dword [esp + 0x28]
cmp edx, eax
jne 0x40794d
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x3c]
cmp eax, edx
jne 0x40794d
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x38]
cmp edx, eax
jne 0x40794d
mov edx, dword [esp + 0x24]
xor eax, eax
test edx, edx
jle 0x407943
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
sub edi, edx
lea ebp, [ecx + ebx + 4]
mov edx, dword [esp + 0x10]
mov cl, al
add cl, 0x55
lea esi, [eax + edx]
mov dl, byte [esi + ebp]
xor dl, cl
mov cl, byte [esi]
cmp dl, cl
jne 0x407937
mov dl, byte [eax + ebx + 0x14]
mov cl, al
add cl, 0x77
xor dl, cl
mov cl, byte [esi + edi]
cmp dl, cl
jne 0x407937
mov edx, dword [esp + 0x24]
inc eax
cmp eax, edx
jl 0x407903
jmp 0x40793b
mov edx, dword [esp + 0x24]
mov cl, byte [esp + 0x50]
mov edi, dword [esp + 0x14]
cmp eax, edx
jne 0x40794d
add edi, 0xffff
mov edx, dword [esp + 0x34]
inc edx
add ebx, 0x1c
mov dword [esp + 0x34], edx
mov esi, dword [esp + 0x58]
mov eax, 1
mov edx, dword [esp + 0x2c]
dec edx
mov dword [esp + 0x2c], edx
je 0x40797d
mov edx, edi
and edx, 0xffff
cmp edx, esi
jb 0x40787c
mov ecx, edi
and ecx, 0xffff
cmp ecx, esi
jb 0x40782d
cmp eax, 1
je 0x4079bc
mov edx, dword [esp + 0x58]
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jae 0x4079bc
add eax, eax
cmp eax, 0x100
jl 0x4079a2
mov esi, dword [esp + 0x1c]
xor edx, edx
mov dx, word [esi + ecx*2]
mov ecx, dword [esp + 0x18]
mov byte [edx + ecx], al
mov ecx, dword [esp + 0x58]
mov dl, byte [esp + 0x54]
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x14], edi
jbe 0x407a40
xor eax, eax
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov bl, byte [ecx + eax]
xor bl, dl
add dl, bl
mov byte [ecx + eax], bl
test eax, eax
mov byte [esp + 0x50], dl
jbe 0x407a1d
mov ecx, 1
cmp eax, ecx
jbe 0x407a18
mov esi, dword [esp + 0x18]
xor edx, edx
mov dl, byte [esi + ebp]
mov esi, edx
mov ebx, dword [esp + 0x18]
xor edx, edx
mov dl, byte [ecx + ebx]
mov ebx, esi
shr edx, 1
shr ebx, 1
xor edx, ebx
add edi, edx
inc ecx
cmp ecx, eax
jb 0x4079fc
mov dl, byte [esp + 0x50]
inc ebp
cmp ebp, eax
jb 0x4079e8
mov ecx, dword [esp + 0x18]
mov bl, byte [ecx + eax]
xor bl, 0x6a
mov byte [ecx + eax], bl
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
inc eax
mov dword [esp + 0x14], eax
and eax, 0xffff
cmp eax, ecx
jb 0x4079d0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
xor edx, edx
test ecx, ecx
jbe 0x407a7a
mov ebp, dword [esp + 0x4c]
xor ecx, ecx
xor eax, eax
mov ax, word [esi + ecx*2]
mov al, byte [eax + ebx]
xor al, dl
mov byte [ecx + ebp], al
and eax, 0xff
add edi, eax
mov eax, dword [esp + 0x58]
inc edx
mov ecx, edx
and ecx, 0xffff
cmp ecx, eax
jb 0x407a54
cmp dword [0x42b754], edi
je 0x407a92
mov dword [0x42b754], edi
mov dword [0x42b750], 1
push ebx
call fcn.0041b3aa
push esi
call fcn.0041b3aa
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x60]
add esp, 8
push ebx
mov dword [esp + 0x18], eax
call fcn.0041b0b3
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x18]
add esp, 4
test ebp, ebp
je 0x407b00
mov ecx, dword [0x42bb00]
mov edx, dword [ecx + 8]
test edx, edx
je 0x407b00
mov edx, dword [0x42b7c0]
xor ecx, ecx
mov byte [edx], 8
xor edx, edx
mov esi, 0xa
div esi
mov esi, dword [0x42b7c0]
sub esi, ecx
add dl, 0x30
inc ecx
cmp ecx, 8
mov byte [esi + 8], dl
jl 0x407ada
mov eax, dword [0x42b7c0]
mov byte [eax + 9], 0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret