Function at 0x4059c0
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 [0x429650]
repne scasb al, byte es:[edi]
mov eax, dword [edx + 8]
not ecx
dec ecx
test eax, eax
mov ebp, ecx
je 0x406787
cmp eax, 2
jbe 0x4073c3
cmp eax, 4
ja 0x4073c3
cmp ebp, 0x10
jl 0x4073c3
cmp ebp, 0x18
jg 0x4073c3
mov ecx, dword [esp + 0x58]
mov edi, ebx
test ecx, ecx
je 0x40602c
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 + 0x3c], esi
mov edi, ecx
mov ecx, eax
mov dword [esp + 0x1c], edi
je 0x405a97
mov al, byte [eax + ebx]
cmp al, 0x30
jl 0x405aaf
cmp al, 0x5a
jg 0x405aaf
test esi, esi
je 0x405a83
cmp al, 0x39
jg 0x405aaf
jmp 0x405a8b
cmp al, 0x38
jle 0x405a8b
cmp al, 0x41
jl 0x405aaf
inc ecx
mov eax, ecx
and eax, 0xffff
cmp eax, edi
jb 0x405a6e
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 0x405abc
xor eax, eax
mov ebp, eax
mov dword [esp + 0x14], ebp
jmp 0x40661c
mov edi, ebp
test esi, esi
mov dword [esp + 0x10], edi
jne 0x405b2b
mov edi, dword [esp + 0x50]
xor eax, eax
test edi, edi
mov esi, ebx
mov ecx, 1
jbe 0x405b0a
mov dl, byte [esi]
inc esi
test dl, dl
je 0x405b00
mov edx, 5
add ecx, ecx
cmp ecx, 0x100
jl 0x405af3
inc eax
mov ecx, 1
dec edx
je 0x405afc
cmp eax, edi
jb 0x405ae3
jmp 0x405b00
cmp eax, edi
jb 0x405ad7
cmp ecx, 1
je 0x405b0a
cmp eax, edi
jae 0x405b0a
inc eax
mov edi, eax
cmp ebp, eax
mov dword [esp + 0x10], edi
jae 0x405b1a
mov edi, ebp
mov dword [esp + 0x10], edi
cmp edi, 0x29e
jbe 0x405b2b
mov edi, 0x29e
mov dword [esp + 0x10], edi
mov esi, dword [esp + 0x1c]
xor ecx, ecx
shr esi, 2
mov eax, ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x40], esi
je 0x405b83
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 0x405b40
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x1c]
and edx, 3
mov dword [esp + 0x38], edx
jbe 0x405ba6
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 0x405b90
mov dword [esp + 0x2c], ecx
push 0x53c
call fcn.00419545
mov esi, eax
push 0x29e
mov dword [esp + 0x58], esi
call fcn.00419545
movzx bp, byte [esp + 0x60]
mov ecx, 1
add esp, 8
cmp di, cx
mov dword [esp + 0x28], eax
mov word [esi], 0
jbe 0x405c28
mov eax, dword [esp + 0x50]
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 + 0x50]
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 0x405bef
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x40]
xor ebp, ebp
xor edx, edx
cmp esi, ebp
mov dword [esp + 0x30], edx
lea eax, [eax + edi - 1]
jbe 0x405c87
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 0x405c44
mov dword [esp + 0x30], edx
mov ecx, dword [esp + 0x38]
cmp ecx, ebp
jbe 0x405ca5
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 0x405c8f
mov dword [esp + 0x30], edx
mov esi, dword [0x429758]
mov dword [esp + 0x40], edi
xor edi, edi
mov dword [esp + 0x18], ebp
mov ecx, dword [esi*4 + 0x4293d0]
mov dword [esp + 0x34], ebp
cmp ecx, ebp
mov dword [esp + 0x44], ebp
mov eax, 1
je 0x405d1c
mov dl, byte [ecx + 4]
sub dl, 0xe
mov byte [esp + 0x38], dl
je 0x405cf2
mov edx, dword [esp + 0x38]
and edx, 0xff
lea ebx, [edx - 1]
cmp ebx, esi
je 0x405cf2
cmp edx, dword [0x429754]
jle 0x405d1c
mov edx, dword [ecx]
lea ebp, [ecx + 5]
mov ecx, dword [0x429650]
mov dword [esp + 0x44], edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], 5
mov edx, dword [ecx + 8]
test edx, edx
jne 0x405d1c
mov dword [esp + 0x24], 8
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
test edx, edx
jbe 0x405efd
mov esi, dword [esp + 0x40]
mov cl, byte [esi]
inc esi
test cl, cl
mov byte [esp + 0x14], cl
mov dword [esp + 0x40], esi
je 0x405ed6
mov esi, dword [esp + 0x3c]
test esi, esi
jne 0x405da2
cmp cl, 0x37
jne 0x405d63
mov cl, 0x49
mov dword [esp + 0x38], 5
add cl, 0xc5
mov byte [esp + 0x14], cl
jmp 0x405db6
cmp cl, 0x38
jne 0x405d7b
mov cl, 0x4f
mov dword [esp + 0x38], 5
add cl, 0xc5
mov byte [esp + 0x14], cl
jmp 0x405db6
cmp cl, 0x41
jb 0x405d91
add cl, 0xc5
mov dword [esp + 0x38], 5
mov byte [esp + 0x14], cl
jmp 0x405db6
add cl, 0xcf
mov dword [esp + 0x38], 5
mov byte [esp + 0x14], cl
jmp 0x405db6
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], 1
and eax, 0xff
or ah, 1
mov esi, dword [esp + 0x3c]
test esi, esi
jne 0x405dcd
add eax, eax
test cl, 1
je 0x405dc7
or al, 1
shr cl, 1
mov byte [esp + 0x14], cl
cmp eax, 0x100
jl 0x405eab
mov esi, dword [esp + 0x50]
mov edx, edi
and edx, 0xffff
xor ecx, ecx
inc edi
mov cx, word [esi + edx*2]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x20], edi
mov byte [ecx + ebx], al
mov eax, dword [esp + 0x34]
cmp eax, edx
jae 0x405e9e
test ebp, ebp
je 0x405e9e
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp]
cmp ecx, eax
jne 0x405e9e
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jne 0x405e9e
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 8]
cmp eax, edx
jne 0x405e9e
mov ecx, dword [esp + 0x24]
xor eax, eax
test ecx, ecx
jle 0x405e90
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x54]
sub edi, ecx
mov ecx, dword [esp + 0x18]
sub ecx, edx
lea ebp, [ecx + 0xc]
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 0x405e84
mov edx, dword [esp + 0x18]
mov cl, al
add cl, 0x77
mov dl, byte [eax + edx + 0x14]
xor dl, cl
mov cl, byte [esi + edi]
cmp dl, cl
jne 0x405e84
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
jl 0x405e4c
jmp 0x405e88
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
cmp eax, ecx
jne 0x405e9a
add edi, 0xffff
inc dword [esp + 0x34]
mov cl, byte [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, 1
mov esi, dword [esp + 0x38]
dec esi
mov dword [esp + 0x38], esi
je 0x405ec6
mov esi, edi
and esi, 0xffff
cmp esi, edx
jb 0x405db6
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jb 0x405d2c
cmp eax, 1
je 0x405efd
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jae 0x405efd
add eax, eax
cmp eax, 0x100
jl 0x405ee7
mov edi, dword [esp + 0x50]
xor esi, esi
mov si, word [edi + ecx*2]
mov byte [esi + ebx], al
mov al, byte [esp + 0x58]
xor edi, edi
cmp edx, edi
mov dword [esp + 0x20], edi
mov byte [esp + 0x54], al
jbe 0x405fb1
xor ecx, ecx
jmp 0x405f1b
mov al, byte [esp + 0x54]
mov edx, dword [esp + 0x3c]
test edx, edx
jne 0x405f2d
mov dl, byte [ebx + ecx]
xor dl, al
mov byte [ebx + ecx], dl
jmp 0x405f55
mov eax, dword [esp + 0x54]
mov esi, 0xa
and eax, 0xff
cdq
idiv esi
xor eax, eax
mov al, byte [ebx + ecx]
sub eax, edx
sub eax, 0x26
cdq
idiv esi
mov al, byte [esp + 0x54]
add dl, 0x30
mov byte [ebx + ecx], dl
add al, dl
xor ebp, ebp
test ecx, ecx
mov byte [esp + 0x54], al
jbe 0x405f8e
mov eax, 1
cmp ecx, eax
jbe 0x405f89
xor edx, edx
mov dl, byte [ebx + ebp]
mov esi, edx
xor edx, edx
mov dl, byte [eax + ebx]
mov ebx, esi
shr edx, 1
shr ebx, 1
xor edx, ebx
mov ebx, dword [esp + 0x28]
add edi, edx
inc eax
cmp eax, ecx
jb 0x405f71
inc ebp
cmp ebp, ecx
jb 0x405f61
mov al, byte [ebx + ecx]
xor al, 0x6a
mov byte [ebx + ecx], al
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x20], ecx
and ecx, 0xffff
cmp ecx, eax
jb 0x405f17
mov eax, dword [esp + 0x10]
xor edx, edx
test eax, eax
jbe 0x405fec
mov esi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x50]
xor ecx, ecx
xor eax, eax
mov ax, word [ebp + ecx*2]
mov al, byte [eax + ebx]
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 0x405fc5
cmp dword [0x4292b0], edi
je 0x406004
mov dword [0x4292b0], edi
mov dword [0x4292ac], 1
push ebx
call fcn.0041953a
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0041953a
mov eax, dword [esp + 0x18]
mov edx, dword [0x429650]
mov ebp, eax
add esp, 8
mov dword [esp + 0x14], ebp
jmp 0x40661c
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 + 0x20], edi
je 0x406087
mov al, byte [eax + ebx]
cmp al, 0x30
jl 0x40609f
cmp al, 0x5a
jg 0x40609f
test esi, esi
je 0x406073
cmp al, 0x39
jg 0x40609f
jmp 0x40607b
cmp al, 0x38
jle 0x40607b
cmp al, 0x41
jl 0x40609f
inc ecx
mov eax, ecx
and eax, 0xffff
cmp eax, edi
jb 0x40605e
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 0x4060a6
xor eax, eax
jmp 0x406616
mov edi, ebp
test esi, esi
mov dword [esp + 0x10], edi
jne 0x406115
mov edi, dword [esp + 0x50]
xor eax, eax
test edi, edi
mov esi, ebx
mov ecx, 1
jbe 0x4060f4
mov dl, byte [esi]
inc esi
test dl, dl
je 0x4060ea
mov edx, 5
add ecx, ecx
cmp ecx, 0x100
jl 0x4060dd
inc eax
mov ecx, 1
dec edx
je 0x4060e6
cmp eax, edi
jb 0x4060cd
jmp 0x4060ea
cmp eax, edi
jb 0x4060c1
cmp ecx, 1
je 0x4060f4
cmp eax, edi
jae 0x4060f4
inc eax
mov edi, eax
cmp ebp, eax
mov dword [esp + 0x10], edi
jae 0x406104
mov edi, ebp
mov dword [esp + 0x10], edi
cmp edi, 0x29e
jbe 0x406115
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 + 0x3c], ecx
mov dword [esp + 0x50], esi
je 0x40616d
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 0x40612a
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x20]
and edx, 3
mov dword [esp + 0x40], edx
jbe 0x406190
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 0x40617a
mov dword [esp + 0x3c], ecx
push 0x53c
call fcn.00419545
mov esi, eax
push 0x29e
mov dword [esp + 0x20], esi
call fcn.00419545
movzx bp, byte [esp + 0x60]
mov ecx, 1
add esp, 8
cmp di, cx
mov dword [esp + 0x14], eax
mov word [esi], 0
jbe 0x406212
mov eax, dword [esp + 0x18]
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 + 0x18]
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 0x4061d9
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x50]
xor ebx, ebx
xor edx, edx
cmp esi, ebx
mov dword [esp + 0x38], edx
lea eax, [eax + edi - 1]
jbe 0x406271
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 0x40622e
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
jbe 0x406299
mov esi, edx
mov dword [esp + 0x50], ebx
shr esi, 0x1f
xor ebx, ebx
mov bl, byte [eax]
lea edx, [esi + edx*2]
mov esi, ebx
mov ebx, dword [esp + 0x50]
add edx, esi
dec eax
dec ecx
jne 0x406279
mov dword [esp + 0x38], edx
mov esi, dword [0x429758]
mov ebp, edi
xor edi, edi
mov dword [esp + 0x28], ebx
mov ecx, dword [esi*4 + 0x4293d0]
mov dword [esp + 0x34], ebx
cmp ecx, ebx
mov dword [esp + 0x44], ebx
mov eax, 1
je 0x40630e
mov dl, byte [ecx + 4]
sub dl, 0xe
mov byte [esp + 0x50], dl
je 0x4062e4
mov edx, dword [esp + 0x50]
and edx, 0xff
lea ebx, [edx - 1]
cmp ebx, esi
je 0x4062e4
cmp edx, dword [0x429754]
jle 0x40630e
mov edx, dword [ecx]
add ecx, 5
mov dword [esp + 0x28], ecx
mov ecx, dword [0x429650]
mov dword [esp + 0x44], edx
mov dword [esp + 0x24], 5
mov edx, dword [ecx + 8]
test edx, edx
jne 0x40630e
mov dword [esp + 0x24], 8
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test edx, edx
jbe 0x4064f2
jmp 0x406324
mov ebp, dword [esp + 0x40]
mov cl, byte [ebp]
inc ebp
test cl, cl
mov byte [esp + 0x50], cl
mov dword [esp + 0x40], ebp
je 0x4064cb
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x406397
cmp cl, 0x37
jne 0x406358
mov cl, 0x49
mov dword [esp + 0x30], 5
add cl, 0xc5
mov byte [esp + 0x50], cl
jmp 0x4063ab
cmp cl, 0x38
jne 0x406370
mov cl, 0x4f
mov dword [esp + 0x30], 5
add cl, 0xc5
mov byte [esp + 0x50], cl
jmp 0x4063ab
cmp cl, 0x41
jb 0x406386
add cl, 0xc5
mov dword [esp + 0x30], 5
mov byte [esp + 0x50], cl
jmp 0x4063ab
add cl, 0xcf
mov dword [esp + 0x30], 5
mov byte [esp + 0x50], cl
jmp 0x4063ab
mov eax, dword [esp + 0x50]
mov dword [esp + 0x30], 1
and eax, 0xff
or ah, 1
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x4063c2
add eax, eax
test cl, 1
je 0x4063bc
or al, 1
shr cl, 1
mov byte [esp + 0x50], cl
cmp eax, 0x100
jl 0x4064a0
mov ebp, dword [esp + 0x18]
mov edx, edi
and edx, 0xffff
xor esi, esi
inc edi
mov si, word [ebp + edx*2]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x1c], edi
mov byte [esi + ebx], al
mov eax, dword [esp + 0x34]
cmp eax, edx
jae 0x406497
mov eax, dword [esp + 0x28]
test eax, eax
je 0x406497
mov edx, dword [esp + 0x20]
mov esi, dword [eax]
cmp esi, edx
jne 0x406497
mov edx, dword [eax + 4]
mov esi, dword [esp + 0x3c]
cmp edx, esi
jne 0x406497
mov edx, dword [esp + 0x38]
mov esi, dword [eax + 8]
cmp esi, edx
jne 0x406497
mov edx, dword [esp + 0x24]
xor eax, eax
test edx, edx
jle 0x406489
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
sub edi, edx
mov edx, dword [esp + 0x54]
sub ecx, edx
lea ebp, [ecx + 0xc]
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 0x40647d
mov edx, dword [esp + 0x28]
mov cl, al
add cl, 0x77
mov dl, byte [eax + edx + 0x14]
xor dl, cl
mov cl, byte [esi + edi]
cmp dl, cl
jne 0x40647d
mov edx, dword [esp + 0x24]
inc eax
cmp eax, edx
jl 0x406445
jmp 0x406481
mov edx, dword [esp + 0x24]
mov cl, byte [esp + 0x50]
mov edi, dword [esp + 0x1c]
cmp eax, edx
jne 0x406493
add edi, 0xffff
inc dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov eax, 1
mov esi, dword [esp + 0x30]
dec esi
mov dword [esp + 0x30], esi
je 0x4064bb
mov esi, edi
and esi, 0xffff
cmp esi, edx
jb 0x4063ab
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jb 0x406320
cmp eax, 1
je 0x4064f2
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jae 0x4064f2
add eax, eax
cmp eax, 0x100
jl 0x4064dc
mov edi, dword [esp + 0x18]
xor esi, esi
mov si, word [edi + ecx*2]
mov byte [esi + ebx], al
mov al, byte [esp + 0x58]
xor edi, edi
cmp edx, edi
mov dword [esp + 0x1c], edi
mov byte [esp + 0x50], al
jbe 0x4065a6
xor ecx, ecx
jmp 0x406510
mov al, byte [esp + 0x50]
mov edx, dword [esp + 0x2c]
test edx, edx
jne 0x406522
mov dl, byte [ebx + ecx]
xor dl, al
mov byte [ebx + ecx], dl
jmp 0x40654a
mov eax, dword [esp + 0x50]
mov esi, 0xa
and eax, 0xff
cdq
idiv esi
xor eax, eax
mov al, byte [ebx + ecx]
sub eax, edx
sub eax, 0x26
cdq
idiv esi
mov al, byte [esp + 0x50]
add dl, 0x30
mov byte [ebx + ecx], dl
add al, dl
xor ebp, ebp
test ecx, ecx
mov byte [esp + 0x50], al
jbe 0x406583
mov eax, 1
cmp ecx, eax
jbe 0x40657e
xor edx, edx
mov dl, byte [ebx + ebp]
mov esi, edx
xor edx, edx
mov dl, byte [eax + ebx]
mov ebx, esi
shr edx, 1
shr ebx, 1
xor edx, ebx
mov ebx, dword [esp + 0x14]
add edi, edx
inc eax
cmp eax, ecx
jb 0x406566
inc ebp
cmp ebp, ecx
jb 0x406556
mov al, byte [ebx + ecx]
xor al, 0x6a
mov byte [ebx + ecx], al
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x1c], ecx
and ecx, 0xffff
cmp ecx, eax
jb 0x40650c
mov eax, dword [esp + 0x10]
xor edx, edx
test eax, eax
jbe 0x4065e1
mov esi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x18]
xor ecx, ecx
xor eax, eax
mov ax, word [ebp + ecx*2]
mov al, byte [eax + ebx]
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 0x4065ba
cmp dword [0x4292b0], edi
je 0x4065f9
mov dword [0x4292b0], edi
mov dword [0x4292ac], 1
push ebx
call fcn.0041953a
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0041953a
mov eax, dword [esp + 0x18]
mov edx, dword [0x429650]
add esp, 8
mov dword [esp + 0x14], eax
mov ebp, eax
cmp dword [edx + 8], 3
jne 0x40669a
lea esi, [ebp - 1]
xor cl, cl
xor eax, eax
test esi, esi
jle 0x406649
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 0x40662d
mov esi, dword [esp + 0x4c]
mov dl, byte [esi + ebp - 1]
xor dl, al
xor dl, 0x6a
cmp dl, cl
je 0x40666e
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 0x406675
jmp 0x406732
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 0x4066a2
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 0x4066c9
and ecx, 0x7fffff
cmp esi, ecx
je 0x406709
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 0x406710
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 0x40673a
mov ecx, dword [0x429650]
cmp dl, byte [ecx + 0x1d]
je 0x40677c
pop edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov dword [0x429314], esi
jmp 0x407381
cmp ebp, 8
jl 0x4073c3
lea edx, [ebp - 7]
push edx
call fcn.004190e0
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x4073c3
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 [0x429650]
mov bp, word [eax]
je 0x406d9a
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 0x406828
mov al, byte [eax + ebx]
cmp al, 0x30
jl 0x40684b
cmp al, 0x5a
jg 0x40684b
cmp al, 0x38
jle 0x40681c
cmp al, 0x41
jl 0x40684b
inc ecx
mov eax, ecx
and eax, 0xffff
cmp eax, edx
jb 0x406809
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 0x406852
xor eax, eax
jmp 0x40736c
mov esi, eax
xor eax, eax
test edx, edx
mov ecx, 1
jbe 0x406896
mov edi, dword [esp + 0x50]
mov dl, byte [esi]
inc esi
test dl, dl
je 0x40688c
mov edx, 5
add ecx, ecx
cmp ecx, 0x100
jl 0x40687f
inc eax
mov ecx, 1
dec edx
je 0x406888
cmp eax, edi
jb 0x40686f
jmp 0x40688c
cmp eax, edi
jb 0x406863
cmp ecx, 1
je 0x406896
cmp eax, edi
jae 0x406896
inc eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x58], eax
cmp ecx, eax
jae 0x4068a6
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x58]
mov eax, 0x29e
cmp ecx, eax
jbe 0x4068b7
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 0x406911
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 0x4068ce
mov dword [esp + 0x3c], edx
mov ecx, edi
and ecx, 3
mov dword [esp + 0x34], ecx
jbe 0x406932
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 0x40691c
mov dword [esp + 0x3c], edx
push 0x53c
call fcn.00419545
mov ebx, eax
push 0x29e
mov dword [esp + 0x24], ebx
call fcn.00419545
add esp, 8
mov dword [esp + 0x18], eax
test ebp, ebp
mov word [ebx], 0
jne 0x4069c0
movzx bp, byte [esp + 0x54]
mov ecx, 1
cmp word [esp + 0x58], cx
jbe 0x406a30
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 0x406985
jmp 0x406a30
mov al, byte [esp + 0x54]
mov cl, 1
mov byte [esp + 0x50], al
mov al, byte [esp + 0x58]
cmp al, cl
jbe 0x406a30
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 0x4069e4
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 0x406a8d
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 0x406a4a
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x34]
test ecx, ecx
jbe 0x406aab
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 0x406a95
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x10]
mov esi, dword [0x429758]
xor edi, edi
xor ebx, ebx
mov ecx, dword [esi*4 + 0x4293d0]
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 0x406b31
mov dl, byte [ecx + 4]
sub dl, 0xe
mov byte [esp + 0x50], dl
je 0x406b01
mov edx, dword [esp + 0x50]
and edx, 0xff
lea edi, [edx - 1]
cmp edi, esi
je 0x406b01
cmp edx, dword [0x429754]
jle 0x406b2d
mov edx, dword [ecx]
mov edi, dword [esp + 0x14]
lea ebx, [ecx + 5]
mov ecx, dword [0x429650]
mov dword [esp + 0x40], edx
mov dword [esp + 0x24], 5
mov edx, dword [ecx + 8]
test edx, edx
jne 0x406b31
mov dword [esp + 0x24], 8
jmp 0x406b31
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x58]
test edx, edx
jbe 0x406cb8
mov esi, dword [esp + 0x44]
mov cl, byte [esi]
inc esi
test cl, cl
mov dword [esp + 0x44], esi
je 0x406c89
cmp cl, 0x37
jne 0x406b5c
mov cl, 0x49
add cl, 0xc5
jmp 0x406b75
cmp cl, 0x38
jne 0x406b68
mov cl, 0x4f
add cl, 0xc5
jmp 0x406b75
cmp cl, 0x41
jb 0x406b72
add cl, 0xc5
jmp 0x406b75
add cl, 0xcf
mov dword [esp + 0x30], 5
add eax, eax
test cl, 1
je 0x406b86
or al, 1
shr cl, 1
cmp eax, 0x100
mov byte [esp + 0x50], cl
jl 0x406c5e
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 0x406c55
test ebx, ebx
je 0x406c55
mov edx, dword [ebx]
mov eax, dword [esp + 0x28]
cmp edx, eax
jne 0x406c55
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x3c]
cmp eax, edx
jne 0x406c55
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x38]
cmp edx, eax
jne 0x406c55
mov edx, dword [esp + 0x24]
xor eax, eax
test edx, edx
jle 0x406c47
mov edi, dword [esp + 0x28]
mov ecx, ebx
sub edi, edx
mov edx, dword [esp + 0x10]
sub ecx, edx
lea ebp, [ecx + 0xc]
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 0x406c3b
mov dl, byte [eax + ebx + 0x14]
mov cl, al
add cl, 0x77
xor dl, cl
mov cl, byte [edi + esi]
cmp dl, cl
jne 0x406c3b
mov edx, dword [esp + 0x24]
inc eax
cmp eax, edx
jl 0x406c07
jmp 0x406c3f
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov cl, byte [esp + 0x50]
cmp eax, edx
jne 0x406c51
add edi, 0xffff
inc dword [esp + 0x34]
mov edx, dword [esp + 0x58]
mov eax, 1
mov esi, dword [esp + 0x30]
dec esi
mov dword [esp + 0x30], esi
je 0x406c79
mov esi, edi
and esi, 0xffff
cmp esi, edx
jb 0x406b7d
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jb 0x406b3d
cmp eax, 1
je 0x406cb8
mov edx, dword [esp + 0x58]
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jae 0x406cb8
add eax, eax
cmp eax, 0x100
jl 0x406c9e
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 0x406d3c
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 0x406d19
mov ecx, 1
cmp eax, ecx
jbe 0x406d14
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 0x406cf8
mov dl, byte [esp + 0x50]
inc ebp
cmp ebp, eax
jb 0x406ce4
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 0x406ccc
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
xor edx, edx
test ecx, ecx
jbe 0x406d76
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 0x406d50
cmp dword [0x4292b0], edi
je 0x406d8e
mov dword [0x4292b0], edi
mov dword [0x4292ac], 1
push ebp
call fcn.0041953a
push ebx
jmp 0x40735c
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 0x406def
mov al, byte [eax + ebx]
cmp al, 0x30
jl 0x40684b
cmp al, 0x5a
jg 0x40684b
cmp al, 0x38
jle 0x406de3
cmp al, 0x41
jl 0x40684b
inc ecx
mov eax, ecx
and eax, 0xffff
cmp eax, edx
jb 0x406dc4
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 0x406e19
xor eax, eax
jmp 0x40736c
mov esi, eax
xor eax, eax
test edx, edx
mov ecx, 1
jbe 0x406e5d
mov edi, dword [esp + 0x50]
mov dl, byte [esi]
inc esi
test dl, dl
je 0x406e53
mov edx, 5
add ecx, ecx
cmp ecx, 0x100
jl 0x406e46
inc eax
mov ecx, 1
dec edx
je 0x406e4f
cmp eax, edi
jb 0x406e36
jmp 0x406e53
cmp eax, edi
jb 0x406e2a
cmp ecx, 1
je 0x406e5d
cmp eax, edi
jae 0x406e5d
inc eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x58], eax
cmp ecx, eax
jae 0x406e6d
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x58]
mov eax, 0x29e
cmp ecx, eax
jbe 0x406e7e
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 0x406ed8
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 0x406e95
mov dword [esp + 0x3c], edx
mov ecx, edi
and ecx, 3
mov dword [esp + 0x34], ecx
jbe 0x406ef9
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 0x406ee3
mov dword [esp + 0x3c], edx
push 0x53c
call fcn.00419545
mov ebx, eax
push 0x29e
mov dword [esp + 0x24], ebx
call fcn.00419545
add esp, 8
mov dword [esp + 0x18], eax
test ebp, ebp
mov word [ebx], 0
jne 0x406f87
movzx bp, byte [esp + 0x54]
mov ecx, 1
cmp word [esp + 0x58], cx
jbe 0x406ff7
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, [esi + ebx]
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 0x406f4c
jmp 0x406ff7
mov al, byte [esp + 0x54]
mov cl, 1
mov byte [esp + 0x50], al
mov al, byte [esp + 0x58]
cmp al, cl
jbe 0x406ff7
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 0x406fab
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 0x407054
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 0x407011
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x34]
test ecx, ecx
jbe 0x407072
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 0x40705c
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x10]
mov esi, dword [0x429758]
xor edi, edi
xor ebx, ebx
mov ecx, dword [esi*4 + 0x4293d0]
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 0x4070f8
mov dl, byte [ecx + 4]
sub dl, 0xe
mov byte [esp + 0x50], dl
je 0x4070c8
mov edx, dword [esp + 0x50]
and edx, 0xff
lea edi, [edx - 1]
cmp edi, esi
je 0x4070c8
cmp edx, dword [0x429754]
jle 0x4070f4
mov edx, dword [ecx]
mov edi, dword [esp + 0x14]
lea ebx, [ecx + 5]
mov ecx, dword [0x429650]
mov dword [esp + 0x40], edx
mov dword [esp + 0x24], 5
mov edx, dword [ecx + 8]
test edx, edx
jne 0x4070f8
mov dword [esp + 0x24], 8
jmp 0x4070f8
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x58]
test edx, edx
jbe 0x40727f
mov esi, dword [esp + 0x44]
mov cl, byte [esi]
inc esi
test cl, cl
mov dword [esp + 0x44], esi
je 0x407250
cmp cl, 0x37
jne 0x407123
mov cl, 0x49
add cl, 0xc5
jmp 0x40713c
cmp cl, 0x38
jne 0x40712f
mov cl, 0x4f
add cl, 0xc5
jmp 0x40713c
cmp cl, 0x41
jb 0x407139
add cl, 0xc5
jmp 0x40713c
add cl, 0xcf
mov dword [esp + 0x30], 5
add eax, eax
test cl, 1
je 0x40714d
or al, 1
shr cl, 1
cmp eax, 0x100
mov byte [esp + 0x50], cl
jl 0x407225
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 0x40721c
test ebx, ebx
je 0x40721c
mov edx, dword [ebx]
mov eax, dword [esp + 0x28]
cmp edx, eax
jne 0x40721c
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x3c]
cmp eax, edx
jne 0x40721c
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x38]
cmp edx, eax
jne 0x40721c
mov edx, dword [esp + 0x24]
xor eax, eax
test edx, edx
jle 0x40720e
mov edi, dword [esp + 0x28]
mov ecx, ebx
sub edi, edx
mov edx, dword [esp + 0x10]
sub ecx, edx
lea ebp, [ecx + 0xc]
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 0x407202
mov dl, byte [eax + ebx + 0x14]
mov cl, al
add cl, 0x77
xor dl, cl
mov cl, byte [edi + esi]
cmp dl, cl
jne 0x407202
mov edx, dword [esp + 0x24]
inc eax
cmp eax, edx
jl 0x4071ce
jmp 0x407206
mov edx, dword [esp + 0x24]
mov cl, byte [esp + 0x50]
mov edi, dword [esp + 0x14]
cmp eax, edx
jne 0x407218
add edi, 0xffff
inc dword [esp + 0x34]
mov edx, dword [esp + 0x58]
mov eax, 1
mov esi, dword [esp + 0x30]
dec esi
mov dword [esp + 0x30], esi
je 0x407240
mov esi, edi
and esi, 0xffff
cmp esi, edx
jb 0x407144
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jb 0x407104
cmp eax, 1
je 0x40727f
mov edx, dword [esp + 0x58]
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jae 0x40727f
add eax, eax
cmp eax, 0x100
jl 0x407265
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 0x407303
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 0x4072e0
mov ecx, 1
cmp eax, ecx
jbe 0x4072db
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 0x4072bf
mov dl, byte [esp + 0x50]
inc ebp
cmp ebp, eax
jb 0x4072ab
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 0x407293
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
xor edx, edx
test ecx, ecx
jbe 0x40733d
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 0x407317
cmp dword [0x4292b0], edi
je 0x407355
mov dword [0x4292b0], edi
mov dword [0x4292ac], 1
push ebx
call fcn.0041953a
push esi
call fcn.0041953a
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x60]
add esp, 8
push ebx
mov dword [esp + 0x18], eax
call fcn.00419243
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x18]
add esp, 4
test ebp, ebp
je 0x4073c3
mov ecx, dword [0x429650]
mov edx, dword [ecx + 8]
test edx, edx
je 0x4073c3
mov edx, dword [0x429314]
xor ecx, ecx
mov byte [edx], 8
xor edx, edx
mov esi, 0xa
div esi
mov esi, dword [0x429314]
sub esi, ecx
add dl, 0x30
inc ecx
cmp ecx, 8
mov byte [esi + 8], dl
jl 0x40739d
mov eax, dword [0x429314]
mov byte [eax + 9], 0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret