Function at 0x405f10
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 [0x42b988]
repne scasb al, byte es:[edi]
mov eax, dword [edx + 8]
not ecx
dec ecx
test eax, eax
mov ebp, ecx
je 0x406d0c
cmp eax, 2
jbe 0x407970
cmp eax, 4
ja 0x407970
cmp ebp, 0x10
jl 0x407970
cmp ebp, 0x18
jg 0x407970
mov ecx, dword [esp + 0x58]
mov edi, ebx
test ecx, ecx
je 0x40659c
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 0x405fe7
mov al, byte [eax + ebx]
cmp al, 0x30
jl 0x405fff
cmp al, 0x5a
jg 0x405fff
test esi, esi
je 0x405fd3
cmp al, 0x39
jg 0x405fff
jmp 0x405fdb
cmp al, 0x38
jle 0x405fdb
cmp al, 0x41
jl 0x405fff
inc ecx
mov eax, ecx
and eax, 0xffff
cmp eax, edi
jb 0x405fbe
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 0x40600c
xor eax, eax
mov ebp, eax
mov dword [esp + 0x14], ebp
jmp 0x406ba1
mov edi, ebp
test esi, esi
mov dword [esp + 0x10], edi
jne 0x40607b
mov edi, dword [esp + 0x50]
xor eax, eax
test edi, edi
mov esi, ebx
mov ecx, 1
jbe 0x40605a
mov dl, byte [esi]
inc esi
test dl, dl
je 0x406050
mov edx, 5
add ecx, ecx
cmp ecx, 0x100
jl 0x406043
inc eax
mov ecx, 1
dec edx
je 0x40604c
cmp eax, edi
jb 0x406033
jmp 0x406050
cmp eax, edi
jb 0x406027
cmp ecx, 1
je 0x40605a
cmp eax, edi
jae 0x40605a
inc eax
mov edi, eax
cmp ebp, eax
mov dword [esp + 0x10], edi
jae 0x40606a
mov edi, ebp
mov dword [esp + 0x10], edi
cmp edi, 0x29e
jbe 0x40607b
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 0x4060d3
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 0x406090
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x20]
and edx, 3
mov dword [esp + 0x40], edx
jbe 0x4060f6
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 0x4060e0
mov dword [esp + 0x2c], ecx
push 0x53c
call fcn.0041ace5
mov esi, eax
push 0x29e
mov dword [esp + 0x24], esi
call fcn.0041ace5
movzx bp, byte [esp + 0x60]
mov ecx, 1
add esp, 8
cmp di, cx
mov dword [esp + 0x14], eax
mov word [esi], 0
jbe 0x406178
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 0x40613f
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 0x4061d7
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 0x406194
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
jbe 0x4061f5
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 0x4061df
mov dword [esp + 0x18], ebp
mov esi, dword [0x42ba94]
mov dword [esp + 0x40], edi
xor edi, edi
mov dword [esp + 0x30], ebx
mov ecx, dword [esi*4 + 0x42b708]
mov dword [esp + 0x44], ebx
cmp ecx, ebx
mov eax, 1
mov dword [esp + 0x50], edi
je 0x40627a
mov dl, byte [ecx + 4]
sub dl, 0xe
mov byte [esp + 0x3c], dl
je 0x406242
mov edx, dword [esp + 0x3c]
and edx, 0xff
lea edi, [edx - 1]
cmp edi, esi
je 0x406242
cmp edx, dword [0x42ba90]
jle 0x406272
mov edx, dword [ecx]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x50]
lea ebx, [ecx + 5]
mov ecx, dword [0x42b988]
mov dword [esp + 0x44], edx
mov dword [esp + 0x28], 5
mov edx, dword [ecx + 8]
test edx, edx
jne 0x40627a
mov dword [esp + 0x28], 8
jmp 0x40627a
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
test esi, esi
jbe 0x40645e
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 0x406433
mov ecx, dword [esp + 0x38]
test ecx, ecx
jne 0x4062fc
cmp dl, 0x37
jne 0x4062bd
mov dl, 0x49
mov dword [esp + 0x34], 5
add dl, 0xc5
mov byte [esp + 0x24], dl
jmp 0x406310
cmp dl, 0x38
jne 0x4062d5
mov dl, 0x4f
mov dword [esp + 0x34], 5
add dl, 0xc5
mov byte [esp + 0x24], dl
jmp 0x406310
cmp dl, 0x41
jb 0x4062eb
add dl, 0xc5
mov dword [esp + 0x34], 5
mov byte [esp + 0x24], dl
jmp 0x406310
add dl, 0xcf
mov dword [esp + 0x34], 5
mov byte [esp + 0x24], dl
jmp 0x406310
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 0x406334
add eax, eax
test dl, 1
je 0x40632e
or al, 1
shr dl, 1
mov byte [esp + 0x24], dl
cmp eax, 0x100
jl 0x406408
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 0x4063fb
test ebx, ebx
je 0x4063fb
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx]
cmp eax, ecx
jne 0x4063ef
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x2c]
cmp edx, eax
jne 0x4063ef
cmp dword [ebx + 8], ebp
jne 0x4063ef
mov ecx, dword [esp + 0x28]
xor eax, eax
test ecx, ecx
jle 0x4063e5
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 0x4063d9
mov dl, byte [eax + ebx + 0x14]
mov cl, al
add cl, 0x77
xor dl, cl
mov cl, byte [esi + edi]
cmp dl, cl
jne 0x4063d9
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
jl 0x4063a5
jmp 0x4063dd
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x18]
cmp eax, ecx
jne 0x4063ef
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 0x406423
mov ecx, edi
and ecx, 0xffff
cmp ecx, esi
jb 0x40631d
mov edx, edi
and edx, 0xffff
cmp edx, esi
jb 0x406286
cmp eax, 1
je 0x40645e
mov ecx, edi
and ecx, 0xffff
cmp ecx, esi
jae 0x40645e
add eax, eax
cmp eax, 0x100
jl 0x406444
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 0x406522
xor ecx, ecx
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x40648c
mov eax, dword [esp + 0x14]
mov dl, byte [eax + ecx]
xor dl, bl
mov byte [eax + ecx], dl
jmp 0x4064b9
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 0x4064fa
mov eax, 1
cmp ecx, eax
jbe 0x4064f1
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 0x4064d9
inc ebp
cmp ebp, ecx
jb 0x4064c5
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 0x406476
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
xor edx, edx
test eax, eax
jbe 0x406560
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 0x40653a
cmp dword [0x42b5e0], edi
je 0x406578
mov dword [0x42b5e0], edi
mov dword [0x42b5dc], 1
push ebp
call fcn.0041acda
push ebx
call fcn.0041acda
mov eax, dword [esp + 0x18]
mov edx, dword [0x42b988]
mov ebp, eax
add esp, 8
mov dword [esp + 0x14], ebp
jmp 0x406ba1
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 0x4065f7
mov al, byte [eax + ebx]
cmp al, 0x30
jl 0x40660f
cmp al, 0x5a
jg 0x40660f
test esi, esi
je 0x4065e3
cmp al, 0x39
jg 0x40660f
jmp 0x4065eb
cmp al, 0x38
jle 0x4065eb
cmp al, 0x41
jl 0x40660f
inc ecx
mov eax, ecx
and eax, 0xffff
cmp eax, edi
jb 0x4065ce
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 0x406616
xor eax, eax
jmp 0x406b9b
mov edi, ebp
test esi, esi
mov dword [esp + 0x10], edi
jne 0x406685
mov edi, dword [esp + 0x50]
xor eax, eax
test edi, edi
mov esi, ebx
mov ecx, 1
jbe 0x406664
mov dl, byte [esi]
inc esi
test dl, dl
je 0x40665a
mov edx, 5
add ecx, ecx
cmp ecx, 0x100
jl 0x40664d
inc eax
mov ecx, 1
dec edx
je 0x406656
cmp eax, edi
jb 0x40663d
jmp 0x40665a
cmp eax, edi
jb 0x406631
cmp ecx, 1
je 0x406664
cmp eax, edi
jae 0x406664
inc eax
mov edi, eax
cmp ebp, eax
mov dword [esp + 0x10], edi
jae 0x406674
mov edi, ebp
mov dword [esp + 0x10], edi
cmp edi, 0x29e
jbe 0x406685
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 0x4066dd
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 0x40669a
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x24]
and edx, 3
mov dword [esp + 0x40], edx
jbe 0x406700
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 0x4066ea
mov dword [esp + 0x38], ecx
push 0x53c
call fcn.0041ace5
mov esi, eax
push 0x29e
mov dword [esp + 0x24], esi
call fcn.0041ace5
movzx bp, byte [esp + 0x60]
mov ecx, 1
add esp, 8
cmp di, cx
mov dword [esp + 0x14], eax
mov word [esi], 0
jbe 0x406782
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 0x406749
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 0x4067e1
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 0x40679e
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
jbe 0x4067ff
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 0x4067e9
mov dword [esp + 0x18], ebp
mov esi, dword [0x42ba94]
mov dword [esp + 0x44], edi
xor edi, edi
mov dword [esp + 0x34], ebx
mov ecx, dword [esi*4 + 0x42b708]
mov dword [esp + 0x40], ebx
cmp ecx, ebx
mov eax, 1
mov dword [esp + 0x50], edi
je 0x406884
mov dl, byte [ecx + 4]
sub dl, 0xe
mov byte [esp + 0x3c], dl
je 0x40684c
mov edx, dword [esp + 0x3c]
and edx, 0xff
lea edi, [edx - 1]
cmp edi, esi
je 0x40684c
cmp edx, dword [0x42ba90]
jle 0x40687c
mov edx, dword [ecx]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x50]
lea ebx, [ecx + 5]
mov ecx, dword [0x42b988]
mov dword [esp + 0x40], edx
mov dword [esp + 0x28], 5
mov edx, dword [ecx + 8]
test edx, edx
jne 0x406884
mov dword [esp + 0x28], 8
jmp 0x406884
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
test esi, esi
jbe 0x406a68
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 0x406a3d
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x406906
cmp dl, 0x37
jne 0x4068c7
mov dl, 0x49
mov dword [esp + 0x30], 5
add dl, 0xc5
mov byte [esp + 0x20], dl
jmp 0x40691a
cmp dl, 0x38
jne 0x4068df
mov dl, 0x4f
mov dword [esp + 0x30], 5
add dl, 0xc5
mov byte [esp + 0x20], dl
jmp 0x40691a
cmp dl, 0x41
jb 0x4068f5
add dl, 0xc5
mov dword [esp + 0x30], 5
mov byte [esp + 0x20], dl
jmp 0x40691a
add dl, 0xcf
mov dword [esp + 0x30], 5
mov byte [esp + 0x20], dl
jmp 0x40691a
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 0x40693e
add eax, eax
test dl, 1
je 0x406938
or al, 1
shr dl, 1
mov byte [esp + 0x20], dl
cmp eax, 0x100
jl 0x406a12
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 0x406a05
test ebx, ebx
je 0x406a05
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx]
cmp eax, ecx
jne 0x4069f9
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x38]
cmp edx, eax
jne 0x4069f9
cmp dword [ebx + 8], ebp
jne 0x4069f9
mov ecx, dword [esp + 0x28]
xor eax, eax
test ecx, ecx
jle 0x4069ef
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 0x4069e3
mov dl, byte [eax + ebx + 0x14]
mov cl, al
add cl, 0x77
xor dl, cl
mov cl, byte [esi + edi]
cmp dl, cl
jne 0x4069e3
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
jl 0x4069af
jmp 0x4069e7
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x18]
cmp eax, ecx
jne 0x4069f9
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 0x406a2d
mov ecx, edi
and ecx, 0xffff
cmp ecx, esi
jb 0x406927
mov edx, edi
and edx, 0xffff
cmp edx, esi
jb 0x406890
cmp eax, 1
je 0x406a68
mov ecx, edi
and ecx, 0xffff
cmp ecx, esi
jae 0x406a68
add eax, eax
cmp eax, 0x100
jl 0x406a4e
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 0x406b2c
xor ecx, ecx
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x406a96
mov eax, dword [esp + 0x14]
mov dl, byte [eax + ecx]
xor dl, bl
mov byte [eax + ecx], dl
jmp 0x406ac3
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 0x406b04
mov eax, 1
cmp ecx, eax
jbe 0x406afb
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 0x406ae3
inc ebp
cmp ebp, ecx
jb 0x406acf
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 0x406a80
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
xor edx, edx
test eax, eax
jbe 0x406b6a
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 0x406b44
cmp dword [0x42b5e0], edi
je 0x406b82
mov dword [0x42b5e0], edi
mov dword [0x42b5dc], 1
push ebp
call fcn.0041acda
push ebx
call fcn.0041acda
mov eax, dword [esp + 0x18]
mov edx, dword [0x42b988]
add esp, 8
mov dword [esp + 0x14], eax
mov ebp, eax
cmp dword [edx + 8], 3
jne 0x406c1f
lea esi, [ebp - 1]
xor cl, cl
xor eax, eax
test esi, esi
jle 0x406bce
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 0x406bb2
mov esi, dword [esp + 0x4c]
mov dl, byte [esi + ebp - 1]
xor dl, al
xor dl, 0x6a
cmp dl, cl
je 0x406bf3
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 0x406bfa
jmp 0x406cb7
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 0x406c27
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 0x406c4e
and ecx, 0x7fffff
cmp esi, ecx
je 0x406c8e
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 0x406c95
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 0x406cbf
mov ecx, dword [0x42b988]
cmp dl, byte [ecx + 0x1d]
je 0x406d01
pop edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov dword [0x42b64c], esi
jmp 0x40792e
cmp ebp, 8
jl 0x407970
lea edx, [ebp - 7]
push edx
call fcn.0041a880
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x407970
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 [0x42b988]
mov bp, word [eax]
je 0x407333
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 0x406dad
mov al, byte [eax + ebx]
cmp al, 0x30
jl 0x406dd0
cmp al, 0x5a
jg 0x406dd0
cmp al, 0x38
jle 0x406da1
cmp al, 0x41
jl 0x406dd0
inc ecx
mov eax, ecx
and eax, 0xffff
cmp eax, edx
jb 0x406d8e
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 0x406dd7
xor eax, eax
jmp 0x407919
mov esi, eax
xor eax, eax
test edx, edx
mov ecx, 1
jbe 0x406e1b
mov edi, dword [esp + 0x50]
mov dl, byte [esi]
inc esi
test dl, dl
je 0x406e11
mov edx, 5
add ecx, ecx
cmp ecx, 0x100
jl 0x406e04
inc eax
mov ecx, 1
dec edx
je 0x406e0d
cmp eax, edi
jb 0x406df4
jmp 0x406e11
cmp eax, edi
jb 0x406de8
cmp ecx, 1
je 0x406e1b
cmp eax, edi
jae 0x406e1b
inc eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x58], eax
cmp ecx, eax
jae 0x406e2b
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x58]
mov eax, 0x29e
cmp ecx, eax
jbe 0x406e3c
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 0x406e96
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 0x406e53
mov dword [esp + 0x3c], edx
mov ecx, edi
and ecx, 3
mov dword [esp + 0x34], ecx
jbe 0x406eb7
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 0x406ea1
mov dword [esp + 0x3c], edx
push 0x53c
call fcn.0041ace5
mov ebx, eax
push 0x29e
mov dword [esp + 0x24], ebx
call fcn.0041ace5
add esp, 8
mov dword [esp + 0x18], eax
test ebp, ebp
mov word [ebx], 0
jne 0x406f45
movzx bp, byte [esp + 0x54]
mov ecx, 1
cmp word [esp + 0x58], cx
jbe 0x406fb5
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 0x406f0a
jmp 0x406fb5
mov al, byte [esp + 0x54]
mov cl, 1
mov byte [esp + 0x50], al
mov al, byte [esp + 0x58]
cmp al, cl
jbe 0x406fb5
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 0x406f69
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 0x407012
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 0x406fcf
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x34]
test ecx, ecx
jbe 0x407030
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 0x40701a
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x10]
mov esi, dword [0x42ba94]
xor edi, edi
xor ebx, ebx
mov ecx, dword [esi*4 + 0x42b708]
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 0x4070b6
mov dl, byte [ecx + 4]
sub dl, 0xe
mov byte [esp + 0x50], dl
je 0x407086
mov edx, dword [esp + 0x50]
and edx, 0xff
lea edi, [edx - 1]
cmp edi, esi
je 0x407086
cmp edx, dword [0x42ba90]
jle 0x4070b2
mov edx, dword [ecx]
mov edi, dword [esp + 0x14]
lea ebx, [ecx + 5]
mov ecx, dword [0x42b988]
mov dword [esp + 0x40], edx
mov dword [esp + 0x24], 5
mov edx, dword [ecx + 8]
test edx, edx
jne 0x4070b6
mov dword [esp + 0x24], 8
jmp 0x4070b6
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x58]
test esi, esi
jbe 0x407251
mov edx, dword [esp + 0x44]
mov cl, byte [edx]
inc edx
test cl, cl
mov dword [esp + 0x44], edx
je 0x407222
cmp cl, 0x37
jne 0x4070e1
mov cl, 0x49
add cl, 0xc5
jmp 0x4070fa
cmp cl, 0x38
jne 0x4070ed
mov cl, 0x4f
add cl, 0xc5
jmp 0x4070fa
cmp cl, 0x41
jb 0x4070f7
add cl, 0xc5
jmp 0x4070fa
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 0x40711a
or al, 1
shr cl, 1
cmp eax, 0x100
mov byte [esp + 0x50], cl
jl 0x4071f7
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 0x4071ee
test ebx, ebx
je 0x4071ee
mov edx, dword [ebx]
mov eax, dword [esp + 0x28]
cmp edx, eax
jne 0x4071e2
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x3c]
cmp eax, edx
jne 0x4071e2
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x38]
cmp edx, eax
jne 0x4071e2
mov edx, dword [esp + 0x24]
xor eax, eax
test edx, edx
jle 0x4071d8
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 0x4071cc
mov dl, byte [eax + ebx + 0x14]
mov cl, al
add cl, 0x77
xor dl, cl
mov cl, byte [edi + esi]
cmp dl, cl
jne 0x4071cc
mov edx, dword [esp + 0x24]
inc eax
cmp eax, edx
jl 0x407198
jmp 0x4071d0
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov cl, byte [esp + 0x50]
cmp eax, edx
jne 0x4071e2
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 0x407212
mov edx, edi
and edx, 0xffff
cmp edx, esi
jb 0x407111
mov ecx, edi
and ecx, 0xffff
cmp ecx, esi
jb 0x4070c2
cmp eax, 1
je 0x407251
mov edx, dword [esp + 0x58]
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jae 0x407251
add eax, eax
cmp eax, 0x100
jl 0x407237
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 0x4072d5
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 0x4072b2
mov ecx, 1
cmp eax, ecx
jbe 0x4072ad
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 0x407291
mov dl, byte [esp + 0x50]
inc ebp
cmp ebp, eax
jb 0x40727d
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 0x407265
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
xor edx, edx
test ecx, ecx
jbe 0x40730f
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 0x4072e9
cmp dword [0x42b5e0], edi
je 0x407327
mov dword [0x42b5e0], edi
mov dword [0x42b5dc], 1
push ebp
call fcn.0041acda
push ebx
jmp 0x407909
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 0x407388
mov al, byte [eax + ebx]
cmp al, 0x30
jl 0x406dd0
cmp al, 0x5a
jg 0x406dd0
cmp al, 0x38
jle 0x40737c
cmp al, 0x41
jl 0x406dd0
inc ecx
mov eax, ecx
and eax, 0xffff
cmp eax, edx
jb 0x40735d
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 0x4073b2
xor eax, eax
jmp 0x407919
mov esi, eax
xor eax, eax
test edx, edx
mov ecx, 1
jbe 0x4073f6
mov edi, dword [esp + 0x50]
mov dl, byte [esi]
inc esi
test dl, dl
je 0x4073ec
mov edx, 5
add ecx, ecx
cmp ecx, 0x100
jl 0x4073df
inc eax
mov ecx, 1
dec edx
je 0x4073e8
cmp eax, edi
jb 0x4073cf
jmp 0x4073ec
cmp eax, edi
jb 0x4073c3
cmp ecx, 1
je 0x4073f6
cmp eax, edi
jae 0x4073f6
inc eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x58], eax
cmp ecx, eax
jae 0x407406
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x58]
mov eax, 0x29e
cmp ecx, eax
jbe 0x407417
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 0x407471
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 0x40742e
mov dword [esp + 0x3c], edx
mov ecx, edi
and ecx, 3
mov dword [esp + 0x34], ecx
jbe 0x407492
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 0x40747c
mov dword [esp + 0x3c], edx
push 0x53c
call fcn.0041ace5
mov ebx, eax
push 0x29e
mov dword [esp + 0x24], ebx
call fcn.0041ace5
add esp, 8
mov dword [esp + 0x18], eax
test ebp, ebp
mov word [ebx], 0
jne 0x407520
movzx bp, byte [esp + 0x54]
mov ecx, 1
cmp word [esp + 0x58], cx
jbe 0x407590
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 0x4074e5
jmp 0x407590
mov al, byte [esp + 0x54]
mov cl, 1
mov byte [esp + 0x50], al
mov al, byte [esp + 0x58]
cmp al, cl
jbe 0x407590
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 0x407544
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 0x4075ed
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 0x4075aa
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x34]
test ecx, ecx
jbe 0x40760b
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 0x4075f5
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x10]
mov esi, dword [0x42ba94]
xor edi, edi
xor ebx, ebx
mov ecx, dword [esi*4 + 0x42b708]
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 0x407691
mov dl, byte [ecx + 4]
sub dl, 0xe
mov byte [esp + 0x50], dl
je 0x407661
mov edx, dword [esp + 0x50]
and edx, 0xff
lea edi, [edx - 1]
cmp edi, esi
je 0x407661
cmp edx, dword [0x42ba90]
jle 0x40768d
mov edx, dword [ecx]
mov edi, dword [esp + 0x14]
lea ebx, [ecx + 5]
mov ecx, dword [0x42b988]
mov dword [esp + 0x40], edx
mov dword [esp + 0x24], 5
mov edx, dword [ecx + 8]
test edx, edx
jne 0x407691
mov dword [esp + 0x24], 8
jmp 0x407691
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x58]
test esi, esi
jbe 0x40782c
mov edx, dword [esp + 0x44]
mov cl, byte [edx]
inc edx
test cl, cl
mov dword [esp + 0x44], edx
je 0x4077fd
cmp cl, 0x37
jne 0x4076bc
mov cl, 0x49
add cl, 0xc5
jmp 0x4076d5
cmp cl, 0x38
jne 0x4076c8
mov cl, 0x4f
add cl, 0xc5
jmp 0x4076d5
cmp cl, 0x41
jb 0x4076d2
add cl, 0xc5
jmp 0x4076d5
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 0x4076f5
or al, 1
shr cl, 1
cmp eax, 0x100
mov byte [esp + 0x50], cl
jl 0x4077d2
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 0x4077c9
test ebx, ebx
je 0x4077c9
mov edx, dword [ebx]
mov eax, dword [esp + 0x28]
cmp edx, eax
jne 0x4077bd
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x3c]
cmp eax, edx
jne 0x4077bd
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x38]
cmp edx, eax
jne 0x4077bd
mov edx, dword [esp + 0x24]
xor eax, eax
test edx, edx
jle 0x4077b3
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 0x4077a7
mov dl, byte [eax + ebx + 0x14]
mov cl, al
add cl, 0x77
xor dl, cl
mov cl, byte [esi + edi]
cmp dl, cl
jne 0x4077a7
mov edx, dword [esp + 0x24]
inc eax
cmp eax, edx
jl 0x407773
jmp 0x4077ab
mov edx, dword [esp + 0x24]
mov cl, byte [esp + 0x50]
mov edi, dword [esp + 0x14]
cmp eax, edx
jne 0x4077bd
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 0x4077ed
mov edx, edi
and edx, 0xffff
cmp edx, esi
jb 0x4076ec
mov ecx, edi
and ecx, 0xffff
cmp ecx, esi
jb 0x40769d
cmp eax, 1
je 0x40782c
mov edx, dword [esp + 0x58]
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jae 0x40782c
add eax, eax
cmp eax, 0x100
jl 0x407812
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 0x4078b0
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 0x40788d
mov ecx, 1
cmp eax, ecx
jbe 0x407888
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 0x40786c
mov dl, byte [esp + 0x50]
inc ebp
cmp ebp, eax
jb 0x407858
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 0x407840
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
xor edx, edx
test ecx, ecx
jbe 0x4078ea
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 0x4078c4
cmp dword [0x42b5e0], edi
je 0x407902
mov dword [0x42b5e0], edi
mov dword [0x42b5dc], 1
push ebx
call fcn.0041acda
push esi
call fcn.0041acda
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x60]
add esp, 8
push ebx
mov dword [esp + 0x18], eax
call fcn.0041a9e3
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x18]
add esp, 4
test ebp, ebp
je 0x407970
mov ecx, dword [0x42b988]
mov edx, dword [ecx + 8]
test edx, edx
je 0x407970
mov edx, dword [0x42b64c]
xor ecx, ecx
mov byte [edx], 8
xor edx, edx
mov esi, 0xa
div esi
mov esi, dword [0x42b64c]
sub esi, ecx
add dl, 0x30
inc ecx
cmp ecx, 8
mov byte [esi + 8], dl
jl 0x40794a
mov eax, dword [0x42b64c]
mov byte [eax + 9], 0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret